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-Url: http://drtracing.org/?a=commitdiff_plain;h=05209f457069e595ce0262a9032cbade05398571;p=deliverable%2Flinux.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;