mmc: sdhci: return error when failed add_sdhci().
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 13 Dec 2012 20:07:12 +0000 (20:07 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 6 May 2013 21:26:24 +0000 (16:26 -0500)
If failed the add_host(), it is reasonable that return value of
add_sdhci().

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mv_sdhci.c
drivers/mmc/s5p_sdhci.c

index 2fe34b6993b8a8a006da4d0ae5704e1d1e0f66a7..63e1f9062b8a406e020953c3cf9b1a0c630d452b 100644 (file)
@@ -51,6 +51,5 @@ int mv_sdh_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks)
                host->version = sdhci_readl(host, SDHCI_HOST_VERSION - 2) >> 16;
        else
                host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
-       add_sdhci(host, max_clk, min_clk);
-       return 0;
+       return add_sdhci(host, max_clk, min_clk);
 }
index dc49d37f5caee08ebfccd0efe182eed6bc53ffeb..e50ff925a5691164b26b7b8eff09fee637b4707c 100644 (file)
@@ -94,6 +94,5 @@ int s5p_sdhci_init(u32 regbase, int index, int bus_width)
 
        host->host_caps = MMC_MODE_HC;
 
-       add_sdhci(host, 52000000, 400000);
-       return 0;
+       return add_sdhci(host, 52000000, 400000);
 }