From ee931bc46c082a9a3e0778c5ba0a9a3a1b91d250 Mon Sep 17 00:00:00 2001 From: Haibo Chen Date: Tue, 8 Nov 2016 15:06:58 +0800 Subject: [PATCH] MLK-13442: mmc: sdhci-esdhc-imx: release bus frequency when usdhc remove When usdhc driver remove, also need to release bus frequency. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 6df3bf1c8257..7eb32af793d0 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1405,6 +1405,8 @@ static int sdhci_esdhc_imx_remove(struct platform_device *pdev) clk_disable_unprepare(imx_data->clk_per); clk_disable_unprepare(imx_data->clk_ipg); clk_disable_unprepare(imx_data->clk_ahb); + if (imx_data->socdata->flags & ESDHC_FLAG_BUSFREQ) + release_bus_freq(BUS_FREQ_HIGH); sdhci_pltfm_free(pdev); -- 2.17.1