summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2019-06-04 11:14:21 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2019-06-10 18:11:09 +0300
commit1d94717ddcc7bca9482b8a2f22cd2cac7ce2ca50 (patch)
tree7fcafb927e3c541b8b77117e0b30c07850a19407 /drivers
parent90298dc353bc1327d59da30d4b1e4d50d5513033 (diff)
downloadlinux-1d94717ddcc7bca9482b8a2f22cd2cac7ce2ca50.tar.xz
mmc: sdhci-sprd: Check the enable clock's return value correctly
Missed to check the enable clock's return value, fix it. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-sprd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c
index 9a822e2e9f0b..e7414918e100 100644
--- a/drivers/mmc/host/sdhci-sprd.c
+++ b/drivers/mmc/host/sdhci-sprd.c
@@ -368,7 +368,7 @@ static int sdhci_sprd_probe(struct platform_device *pdev)
if (ret)
goto pltfm_free;
- clk_prepare_enable(sprd_host->clk_enable);
+ ret = clk_prepare_enable(sprd_host->clk_enable);
if (ret)
goto clk_disable;