spi: mediatek: remove clk_disable_unprepare()
authorLeilk Liu <leilk.liu@mediatek.com>
Mon, 31 Aug 2015 13:18:56 +0000 (21:18 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 31 Aug 2015 14:26:50 +0000 (15:26 +0100)
This patch removes clk_disable_unprepare() in mtk_spi_remove().
clk_disable_prepare/unprepare must be balance, spi-clk is disabled
in mtk_spi_probe, so not needs to disable again.

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c

index 5f6315c47920efcb42dc52b5c93c26ce60cb7de4..b609b1cbdcba076189ccb937d9b6fd12549a842b 100644 (file)
@@ -630,7 +630,6 @@ static int mtk_spi_remove(struct platform_device *pdev)
        pm_runtime_disable(&pdev->dev);
 
        mtk_spi_reset(mdata);
-       clk_disable_unprepare(mdata->spi_clk);
        spi_master_put(master);
 
        return 0;