alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing
@ 2018-02-11 21:25 Ladislav Michl
  2018-03-14  8:40 ` Peter Ujfalusi
  0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2018-02-11 21:25 UTC (permalink / raw)
  To: alsa-devel; +Cc: Peter Ujfalusi, Mark Brown, Jarkko Nikula

Don't complain on -EPROBE_DEFER when initializing, the driver probe
will be retried later.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
---
 Changes:
 -v2: fixed typo in commit log, added Jarkko Nikula's ack

 sound/soc/omap/omap-twl4030.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
index cccc316743fa..7c1f71884768 100644
--- a/sound/soc/omap/omap-twl4030.c
+++ b/sound/soc/omap/omap-twl4030.c
@@ -322,8 +322,10 @@ static int omap_twl4030_probe(struct platform_device *pdev)
 	snd_soc_card_set_drvdata(card, priv);
 	ret = devm_snd_soc_register_card(&pdev->dev, card);
 	if (ret) {
-		dev_err(&pdev->dev, "devm_snd_soc_register_card() failed: %d\n",
-			ret);
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev,
+				"devm_snd_soc_register_card() failed: %d\n",
+				ret);
 		return ret;
 	}
 
-- 
2.16.1

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

* Re: [PATCH v2] sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing
  2018-02-11 21:25 [PATCH v2] sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing Ladislav Michl
@ 2018-03-14  8:40 ` Peter Ujfalusi
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Ujfalusi @ 2018-03-14  8:40 UTC (permalink / raw)
  To: Ladislav Michl, alsa-devel; +Cc: Mark Brown, Jarkko Nikula



On 2018-02-11 23:25, Ladislav Michl wrote:
> Don't complain on -EPROBE_DEFER when initializing, the driver probe
> will be retried later.
> 
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> ---
>  Changes:
>  -v2: fixed typo in commit log, added Jarkko Nikula's ack
> 
>  sound/soc/omap/omap-twl4030.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
> index cccc316743fa..7c1f71884768 100644
> --- a/sound/soc/omap/omap-twl4030.c
> +++ b/sound/soc/omap/omap-twl4030.c
> @@ -322,8 +322,10 @@ static int omap_twl4030_probe(struct platform_device *pdev)
>  	snd_soc_card_set_drvdata(card, priv);
>  	ret = devm_snd_soc_register_card(&pdev->dev, card);
>  	if (ret) {
> -		dev_err(&pdev->dev, "devm_snd_soc_register_card() failed: %d\n",
> -			ret);
> +		if (ret != -EPROBE_DEFER)
> +			dev_err(&pdev->dev,
> +				"devm_snd_soc_register_card() failed: %d\n",
> +				ret);
>  		return ret;
>  	}
>  
> 

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2018-03-14  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-11 21:25 [PATCH v2] sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing Ladislav Michl
2018-03-14  8:40 ` Peter Ujfalusi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).