mmc: dw_mmc: exynos: fix the suspend/resume issue for exynos5433
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 9 Mar 2018 06:10:21 +0000 (15:10 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:42 +0000 (14:56 +0900)
Before enabling the clock, dwmmc exynos driver is trying to access the
register. Then the kernel panic can be occurred.

Change-Id: I99a859ab167307eede06dba52a15138424254fa1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/mmc/host/dw_mmc-exynos.c

index d48df8b..8c9443d 100644 (file)
@@ -165,7 +165,7 @@ static void dw_mci_exynos_set_clksel_timing(struct dw_mci *host, u32 timing)
 static int dw_mci_exynos_runtime_resume(struct device *dev)
 {
        struct dw_mci *host = dev_get_drvdata(dev);
-       int ret;
+       int ret = 0;
 
        ret = dw_mci_runtime_resume(dev);
        if (ret)