summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-sirf.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-02-27 10:47:30 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 16:13:34 +0300
commit83eacdfa2529b4ee97fe16a3a3a41d1b03465e13 (patch)
tree282158f8efb849008b2a68c987af7abf6473b7e9 /drivers/mmc/host/sdhci-sirf.c
parent2290fcb341a07cc22c0f7f7d529c137a78039cdf (diff)
downloadlinux-83eacdfa2529b4ee97fe16a3a3a41d1b03465e13.tar.xz
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-sirf.c')
-rw-r--r--drivers/mmc/host/sdhci-sirf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c
index 0f75aa98c550..f3c8d8d9fc62 100644
--- a/drivers/mmc/host/sdhci-sirf.c
+++ b/drivers/mmc/host/sdhci-sirf.c
@@ -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