From: Baolin Wang Date: Tue, 4 Jun 2019 08:14:21 +0000 (+0800) Subject: mmc: sdhci-sprd: Check the enable clock's return value correctly X-Git-Tag: microblaze-v5.4-rc1~330^2~45 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=1d94717ddcc7bca9482b8a2f22cd2cac7ce2ca50;p=linux-2.6-microblaze.git 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 Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson --- 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;