@@ -462,6 +462,7 @@ static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev)
err = PTR_ERR(clk);
goto err_clk_get;
}
+ clk_prepare(clk);
clk_enable(clk);
pltfm_host->clk = clk;
@@ -551,6 +552,7 @@ no_card_detect_irq:
no_card_detect_pin:
no_board_data:
clk_disable(pltfm_host->clk);
+ clk_unprepare(pltfm_host->clk);
clk_put(pltfm_host->clk);
err_clk_get:
kfree(imx_data);
@@ -578,6 +580,7 @@ static int __devexit sdhci_esdhc_imx_remove(struct platform_device *pdev)
}
clk_disable(pltfm_host->clk);
+ clk_unprepare(pltfm_host->clk);
clk_put(pltfm_host->clk);
kfree(imx_data);
Signed-off-by: Richard Zhao <richard.zhao@linaro.org> --- drivers/mmc/host/sdhci-esdhc-imx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)