[alsa-devel] [PATCH] ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error
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:
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
participants (2)
-
Fabio Estevam
-
Lucas Stach