public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: dw-mmc: return the result of mmc_add_host()
@ 2013-02-15 14:45 Jaehoon Chung
  2013-02-19 10:18 ` Seungwon Jeon
  0 siblings, 1 reply; 3+ messages in thread
From: Jaehoon Chung @ 2013-02-15 14:45 UTC (permalink / raw)
  To: linux-mmc; +Cc: 'Chris Ball', Seungwon Jeon

check the result of mmc_add_host() and return the value.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/host/dw_mmc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 60063cc..e481d90 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)
 
 	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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] mmc: dw-mmc: return the result of mmc_add_host()
  2013-02-15 14:45 [PATCH] mmc: dw-mmc: return the result of mmc_add_host() Jaehoon Chung
@ 2013-02-19 10:18 ` Seungwon Jeon
  2013-03-22 15:56   ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: Seungwon Jeon @ 2013-02-19 10:18 UTC (permalink / raw)
  To: 'Jaehoon Chung', linux-mmc; +Cc: 'Chris Ball'

On Friday, February 15, 2013, Jaehoon Chung wrote:
> 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>

> ---
>  drivers/mmc/host/dw_mmc.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 60063cc..e481d90 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)
> 
>  	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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mmc: dw-mmc: return the result of mmc_add_host()
  2013-02-19 10:18 ` Seungwon Jeon
@ 2013-03-22 15:56   ` Chris Ball
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2013-03-22 15:56 UTC (permalink / raw)
  To: Seungwon Jeon; +Cc: 'Jaehoon Chung', linux-mmc

Hi,

On Tue, Feb 19 2013, Seungwon Jeon wrote:
> On Friday, February 15, 2013, Jaehoon Chung wrote:
>> 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>

Thanks, pushed to mmc-next for 3.10.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-22 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15 14:45 [PATCH] mmc: dw-mmc: return the result of mmc_add_host() Jaehoon Chung
2013-02-19 10:18 ` Seungwon Jeon
2013-03-22 15:56   ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox