]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ASoC: imx-sgtl5000: don't print EPROBE_DEFER as error
authorStefan Agner <stefan@agner.ch>
Fri, 18 Jan 2019 09:06:54 +0000 (10:06 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 18 Jan 2019 18:08:19 +0000 (18:08 +0000)
Probe deferral is to be expected during normal operation, so avoid
printing an error when it is encountered.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-sgtl5000.c

index 9790a2a8ec2db494ded74c29b2e784bb513b6d06..b6cb80480b6058824d823302c2463b277fb15956 100644 (file)
@@ -157,7 +157,9 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
 
        ret = devm_snd_soc_register_card(&pdev->dev, &data->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);
                goto fail;
        }