diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-12 15:15:31 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-15 13:52:40 +0100 |
commit | 05209f457069e595ce0262a9032cbade05398571 (patch) | |
tree | bed98750f602215bba7447eaa814c14e3038bbf7 /drivers/spi/spi-fsl-dspi.c | |
parent | b444d1dfe296433a93d6b814d924e0ab99ad7e7b (diff) |
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 dc3d4eb0531..3c26fb297cf 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; |