ASoC: fsl-asoc-card: don't print EPROBE_DEFER as error
authorLucas Stach <l.stach@pengutronix.de>
Fri, 18 Aug 2017 16:33:35 +0000 (18:33 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2017 16:25:06 +0000 (17:25 +0100)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c

index 9998aea2359794fff4b9ccb82b7ab3ee375437aa..2db4d0c80d332cbf406273f822d1a061114cf250 100644 (file)
@@ -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: