aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2013-02-15 09:45:45 -0500
committerChris Ball <cjb@laptop.org>2013-03-22 11:55:57 -0400
commit0cea529d1afeeb120ae3f22fe353d38049caed5f (patch)
tree4c0fefd41f2dd51d9890c4fa6659a4caa369aeed /drivers/mmc/host
parent3aaf7ba7fda3cda285a407ad0a2acf1b183342fa (diff)
mmc: dw_mmc: return the result of mmc_add_host()
Check the result of mmc_add_host() and return the value. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/dw_mmc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 98342213ed21..6da19c15d73b 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1990,7 +1990,9 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
1990 1990
1991 slot->wp_gpio = dw_mci_of_get_wp_gpio(host->dev, slot->id); 1991 slot->wp_gpio = dw_mci_of_get_wp_gpio(host->dev, slot->id);
1992 1992
1993 mmc_add_host(mmc); 1993 ret = mmc_add_host(mmc);
1994 if (ret)
1995 goto err_setup_bus;
1994 1996
1995#if defined(CONFIG_DEBUG_FS) 1997#if defined(CONFIG_DEBUG_FS)
1996 dw_mci_init_debugfs(slot); 1998 dw_mci_init_debugfs(slot);