From: Wei Yongjun Date: Sat, 12 Oct 2013 07:15:31 +0000 (+0800) Subject: spi: fsl-dspi: add missing clk_disable_unprepare() in dspi_remove() X-Git-Tag: firefly_0821_release~176^2~5010^2~19^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=05209f457069e595ce0262a9032cbade05398571;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Mark Brown --- 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;