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>
This commit is contained in:
Baolin Wang 2019-06-04 16:14:21 +08:00 committed by Ulf Hansson
parent 90298dc353
commit 1d94717ddc
1 changed files with 1 additions and 1 deletions

View File

@ -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;