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:
parent
90298dc353
commit
1d94717ddc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue