alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error
@ 2017-08-18 16:33 Lucas Stach
  2017-08-21 13:31 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2017-08-18 16:33 UTC (permalink / raw)
  To: Timur Tabi, Nicolin Chen, Xiubo Li, Liam Girdwood, Mark Brown
  Cc: Nikita Yushchenko, alsa-devel, Wladimir J . van der Laan,
	patchwork-lst, Ilia Mirkin, kernel, Chris Healy

Probe deferral is to be expected during normal operation, so avoid
printing an error when it is encountered.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 sound/soc/fsl/fsl-asoc-card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 9998aea23597..2db4d0c80d33 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -683,7 +683,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
 	snd_soc_card_set_drvdata(&priv->card, priv);
 
 	ret = devm_snd_soc_register_card(&pdev->dev, &priv->card);
-	if (ret)
+	if (ret && ret != -EPROBE_DEFER)
 		dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
 
 asrc_fail:
-- 
2.11.0

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

* Re: [PATCH] ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error
  2017-08-18 16:33 [PATCH] ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error Lucas Stach
@ 2017-08-21 13:31 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2017-08-21 13:31 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Nikita Yushchenko, alsa-devel@alsa-project.org,
	Wladimir J . van der Laan, Xiubo Li, Liam Girdwood, Timur Tabi,
	Nicolin Chen, Mark Brown, Chris Healy, Sascha Hauer,
	patchwork-lst, Ilia Mirkin

On Fri, Aug 18, 2017 at 1:33 PM, Lucas Stach <l.stach@pengutronix.de> wrote:
> Probe deferral is to be expected during normal operation, so avoid
> printing an error when it is encountered.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

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

end of thread, other threads:[~2017-08-21 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 16:33 [PATCH] ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error Lucas Stach
2017-08-21 13:31 ` Fabio Estevam

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).