mmc: sdhci: disable the clock in sdhci_pltfm_unregister()

So we can avoid to sprinkle the clk_disable_unprepare() in many
drivers.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Esse commit está contido em:
Kevin Hao
2015-02-27 15:47:30 +08:00
commit de Ulf Hansson
commit 83eacdfa25
7 arquivos alterados com 6 adições e 39 exclusões

Ver arquivo

@@ -196,11 +196,8 @@ err_clk_prepare:
static int sdhci_sirf_remove(struct platform_device *pdev)
{
struct sdhci_host *host = platform_get_drvdata(pdev);
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
clk_disable_unprepare(pltfm_host->clk);
sdhci_pltfm_unregister(pdev);
return 0;
return sdhci_pltfm_unregister(pdev);
}
#ifdef CONFIG_PM_SLEEP