ASoC: imx-sgtl5000: lower log level for potential probe deferral cases
authorStefan Agner <stefan@agner.ch>
Fri, 18 Jan 2019 09:06:53 +0000 (10:06 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 18 Jan 2019 18:08:05 +0000 (18:08 +0000)
Not finding the codec/SSI instance can be due to probe deferral.
Do not print error messages in those cases.

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 594bde3b0ded12af0bc1b7b4aea781c401be9162..9790a2a8ec2db494ded74c29b2e784bb513b6d06 100644 (file)
@@ -104,13 +104,13 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
 
        ssi_pdev = of_find_device_by_node(ssi_np);
        if (!ssi_pdev) {
-               dev_err(&pdev->dev, "failed to find SSI platform device\n");
+               dev_dbg(&pdev->dev, "failed to find SSI platform device\n");
                ret = -EPROBE_DEFER;
                goto fail;
        }
        codec_dev = of_find_i2c_device_by_node(codec_np);
        if (!codec_dev) {
-               dev_err(&pdev->dev, "failed to find codec platform device\n");
+               dev_dbg(&pdev->dev, "failed to find codec platform device\n");
                ret = -EPROBE_DEFER;
                goto fail;
        }