summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2012-12-13 20:07:12 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-06 16:26:24 -0500
commita68aac4947bf8dfd429267561ddf438fab2561ec (patch)
tree7447b5671c5eab6bf181cf96492a37217a6b3c80 /drivers
parent1f4ca2547c9a3bdaf1e592a08370cba2b139471b (diff)
downloadu-boot-imx-a68aac4947bf8dfd429267561ddf438fab2561ec.zip
u-boot-imx-a68aac4947bf8dfd429267561ddf438fab2561ec.tar.gz
u-boot-imx-a68aac4947bf8dfd429267561ddf438fab2561ec.tar.bz2
mmc: sdhci: return error when failed add_sdhci().
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mv_sdhci.c3
-rw-r--r--drivers/mmc/s5p_sdhci.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 2fe34b6..63e1f90 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -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);
}
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index dc49d37..e50ff92 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -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);
}