Re: [PATCH v2 1/9] mmc: sdhci-sprd: Check the enable clock's return value correctly

2019-07-05 Thread Olof Johansson
On Fri, Jul 5, 2019 at 3:25 PM Olof Johansson via Linux.Kernel.Org
 wrote:

Hmm, well, that didn't work like I expected to. Sorry for the noise.


-Olof


[PATCH v2 1/9] mmc: sdhci-sprd: Check the enable clock's return value correctly

2019-06-04 Thread Baolin Wang
Missed to check the enable clock's return value, fix it.

Signed-off-by: Baolin Wang 
Acked-by: Adrian Hunter 
---
 drivers/mmc/host/sdhci-sprd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c
index 9a822e2..e741491 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;
 
-- 
1.7.9.5