summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mv_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/mv_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/mv_sdhci.c')
-rw-r--r--drivers/mmc/mv_sdhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 2fe34b6993..63e1f9062b 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);
}
OpenPOWER on IntegriCloud