projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e84cdd
)
spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare
author
Qing Zhang
<zhangqing@loongson.cn>
Wed, 15 Jul 2020 05:26:47 +0000
(13:26 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 16 Jul 2020 23:55:26 +0000
(
00:55
+0100)
Convert clk_enable() to clk_prepare_enable() and clk_disable() to
clk_disable_unprepare() respectively in the spi-coldfire-qspi.c.
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Link:
https://lore.kernel.org/r/1594790807-32319-2-git-send-email-zhangqing@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-coldfire-qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-coldfire-qspi.c
b/drivers/spi/spi-coldfire-qspi.c
index f80e06c87fbe35924151f2d2c8abc053a47f6379..8996115ce736a9cbe4346cf8b8b11b9483e7f048 100644
(file)
--- a/
drivers/spi/spi-coldfire-qspi.c
+++ b/
drivers/spi/spi-coldfire-qspi.c
@@
-387,7
+387,7
@@
static int mcfqspi_probe(struct platform_device *pdev)
status = PTR_ERR(mcfqspi->clk);
goto fail0;
}
- clk_enable(mcfqspi->clk);
+ clk_
prepare_
enable(mcfqspi->clk);
master->bus_num = pdata->bus_num;
master->num_chipselect = pdata->num_chipselect;
@@
-425,7
+425,7
@@
fail2:
pm_runtime_disable(&pdev->dev);
mcfqspi_cs_teardown(mcfqspi);
fail1:
- clk_disable(mcfqspi->clk);
+ clk_disable
_unprepare
(mcfqspi->clk);
fail0:
spi_master_put(master);