diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-12 11:15:31 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-15 16:52:40 +0400 |
commit | 05209f457069e595ce0262a9032cbade05398571 (patch) | |
tree | bed98750f602215bba7447eaa814c14e3038bbf7 /drivers/spi/spi-fsl-dspi.c | |
parent | b444d1dfe296433a93d6b814d924e0ab99ad7e7b (diff) | |
download | linux-05209f457069e595ce0262a9032cbade05398571.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>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-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 dc3d4eb0531c..3c26fb297cf1 100644 --- 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; |