summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-dove.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-02-27 08:47:25 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 14:13:32 +0100
commit6a4a34a413d896d1efe5a582a3bb8e435da65c1a (patch)
treeeba5a15a979898bbe9f2d6bf8e5958314c58cf8e /drivers/mmc/host/sdhci-dove.c
parentmmc: sirf: update sdhci_sirf_execute_tuning procedure (diff)
downloadlinux-6a4a34a413d896d1efe5a582a3bb8e435da65c1a.tar.xz
linux-6a4a34a413d896d1efe5a582a3bb8e435da65c1a.zip
mmc: sdhci-dove: remove the unneeded error check
The function clk_disable_unprepare() already take care of either error or null cases. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-dove.c')
-rw-r--r--drivers/mmc/host/sdhci-dove.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c
index ca969d271a27..0a7aeb162497 100644
--- a/drivers/mmc/host/sdhci-dove.c
+++ b/drivers/mmc/host/sdhci-dove.c
@@ -117,8 +117,7 @@ static int sdhci_dove_probe(struct platform_device *pdev)
return 0;
err_sdhci_add:
- if (!IS_ERR(priv->clk))
- clk_disable_unprepare(priv->clk);
+ clk_disable_unprepare(priv->clk);
sdhci_pltfm_free(pdev);
return ret;
}
@@ -131,8 +130,7 @@ static int sdhci_dove_remove(struct platform_device *pdev)
sdhci_pltfm_unregister(pdev);
- if (!IS_ERR(priv->clk))
- clk_disable_unprepare(priv->clk);
+ clk_disable_unprepare(priv->clk);
return 0;
}