diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-12 07:15:31 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:37:36 (GMT) |
commit | 17973c275e01568e09ab7214c25ac5c2020329f5 (patch) | |
tree | d08a681b1f39a20d68a1bdad5307403f4baf7e58 | |
parent | fa8d74c3d960b7aefe058cd74d50a3a124efb969 (diff) | |
download | linux-fsl-qoriq-17973c275e01568e09ab7214c25ac5c2020329f5.tar.xz |
spi: fsl-dspi: add missing clk_disable_unprepare() in dspi_remove()
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>
(cherry picked from commit 05209f457069e595ce0262a9032cbade05398571)
Change-Id: Ib45ea4b0fb7f211e5e31352268c4aff4afd4b3e3
Reviewed-on: http://git.am.freescale.net:8181/20083
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 2957faf..49a7346 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -530,6 +530,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; |