]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mmc: sdhci-sprd: Check the enable clock's return value correctly
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 4 Jun 2019 08:14:21 +0000 (16:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2019 15:11:09 +0000 (17:11 +0200)
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>
drivers/mmc/host/sdhci-sprd.c

index 9a822e2e9f0b61967c3ae2c703bcc35527d73a0e..e7414918e100a45dae87bce2575fa612501dc96e 100644 (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;