projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b444d1d
)
spi: fsl-dspi: add missing clk_disable_unprepare() in dspi_remove()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sat, 12 Oct 2013 07:15:31 +0000
(15:15 +0800)
committer
Mark Brown
<broonie@linaro.org>
Tue, 15 Oct 2013 12:52:40 +0000
(13:52 +0100)
clock source is prepared and enabled by clk_prepare_enable()
in probe function, but no disable or unprepare in remove.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-dspi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-fsl-dspi.c
b/drivers/spi/spi-fsl-dspi.c
index dc3d4eb0531c98e8e6c040bc258227cb82e310b3..3c26fb297cf1d5de45096bdeda5b37d22914d1c3 100644
(file)
--- a/
drivers/spi/spi-fsl-dspi.c
+++ b/
drivers/spi/spi-fsl-dspi.c
@@
-536,6
+536,7
@@
static int dspi_remove(struct platform_device *pdev)
/* Disconnect from the SPI framework */
spi_bitbang_stop(&dspi->bitbang);
+ clk_disable_unprepare(dspi->clk);
spi_master_put(dspi->bitbang.master);
return 0;