summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/s5p_sdhci.c
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/mmc/s5p_sdhci.c
parent1f4ca2547c9a3bdaf1e592a08370cba2b139471b (diff)
downloadtalos-obmc-uboot-a68aac4947bf8dfd429267561ddf438fab2561ec.tar.gz
talos-obmc-uboot-a68aac4947bf8dfd429267561ddf438fab2561ec.zip
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/mmc/s5p_sdhci.c')
-rw-r--r--drivers/mmc/s5p_sdhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index dc49d37f5c..e50ff925a5 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);
}
OpenPOWER on IntegriCloud