projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed14666
)
spi: coldfire-qspi: Use clk_disable_unprepare in the remove function
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Wed, 18 Aug 2021 20:55:56 +0000
(22:55 +0200)
committer
Mark Brown
<broonie@kernel.org>
Thu, 19 Aug 2021 17:20:10 +0000
(18:20 +0100)
'clk_prepare_enable()' is used in the probe, so 'clk_disable_unprepare()'
should be used in the remove function to be consistent.
Fixes:
499de01c5c0b
("spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/ee91792ddba61342b0d3284cd4558a2b0016c4e7.1629319838.git.christophe.jaillet@wanadoo.fr
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
8996115
..
263ce90
100644
(file)
--- a/
drivers/spi/spi-coldfire-qspi.c
+++ b/
drivers/spi/spi-coldfire-qspi.c
@@
-444,7
+444,7
@@
static int mcfqspi_remove(struct platform_device *pdev)
mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR);
mcfqspi_cs_teardown(mcfqspi);
- clk_disable(mcfqspi->clk);
+ clk_disable
_unprepare
(mcfqspi->clk);
return 0;
}