mmc: dw-mmc: return the result of mmc_add_host()
Subsystems (2)
Jaehoon Chung
maintainerPATCH 1/1 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 <[email protected]>
--- drivers/mmc/host/dw_mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/dw_mmc.c +3 -1
@@ -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);
Signature · 1 line
1.7.9.5
Quoted 3 lines · Jaehoon Chung
check the result of
mmc_add_host()and return the value.Signed-off-by Jaehoon Chung <[email protected]>
Acked-by Seungwon Jeon <[email protected]>
Quoted 25 lines
--- drivers/mmc/host/dw_mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +3
-2@@ -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); --1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 6 lines · Seungwon Jeon
Quoted 3 lines · Jaehoon Chung
check the result of
mmc_add_host()and return the value.Signed-off-by Jaehoon Chung <[email protected]>Acked-by Seungwon Jeon <[email protected]>
Thanks, pushed to mmc-next for 3.10.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child