]> Git Repo - linux.git/commitdiff
ASoC: mxs-sgtl5000: Do not print error on probe deferral
authorFabio Estevam <[email protected]>
Wed, 17 Jan 2018 15:48:55 +0000 (13:48 -0200)
committerMark Brown <[email protected]>
Thu, 18 Jan 2018 10:59:07 +0000 (10:59 +0000)
Probe deferral may happen, so do not print an error message in this
case.

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/mxs/mxs-sgtl5000.c

index 2ed3240cc68210b38ac4b215f0eddc4bff2d943b..5a871f25f438f4d091b79e3fc68fe418da0ad940 100644 (file)
@@ -143,8 +143,9 @@ static int mxs_sgtl5000_probe(struct platform_device *pdev)
 
        ret = devm_snd_soc_register_card(&pdev->dev, card);
        if (ret) {
-               dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
-                       ret);
+               if (ret != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
+                               ret);
                return ret;
        }
 
This page took 0.051925 seconds and 4 git commands to generate.