projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aaf7ba
)
mmc: dw_mmc: return the result of mmc_add_host()
author
Jaehoon Chung
<jh80.chung@samsung.com>
Fri, 15 Feb 2013 14:45:45 +0000
(23:45 +0900)
committer
Chris Ball
<cjb@laptop.org>
Fri, 22 Mar 2013 15:55:57 +0000
(11:55 -0400)
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>
drivers/mmc/host/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index
9834221
..
6da19c1
100644
(file)
--- 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)
slot->wp_gpio = dw_mci_of_get_wp_gpio(host->dev, slot->id);
- mmc_add_host(mmc);
+ ret = mmc_add_host(mmc);
+ if (ret)
+ goto err_setup_bus;
#if defined(CONFIG_DEBUG_FS)
dw_mci_init_debugfs(slot);