summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2020-06-09 16:10:01 +0800
committerPeter Chen <peter.chen@nxp.com>2020-06-10 11:17:30 +0800
commit4e94c9e1a099c3fe0bdbe67673a8e3a39739d77c (patch)
tree728193c1c25f2ea9e776c466ef864d0700000ecd
parentb22d33047de9a630e105f268515334f298e60403 (diff)
MLK-24290-2 ASoC: imx-wm8524: change dev_err for dev_dbg for -EPROBE_DEFER case
For the -EPROBE_DEFER case, it is not real error, and just resource is not ready. It needs to use debug message instead of error message for it. It could avoid unexpected console message for every device's probe, eg SD/USB devices plug in. Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
-rw-r--r--sound/soc/fsl/imx-wm8524.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8524.c b/sound/soc/fsl/imx-wm8524.c
index 6d2f1e840b8e..f28e92ca64ba 100644
--- a/sound/soc/fsl/imx-wm8524.c
+++ b/sound/soc/fsl/imx-wm8524.c
@@ -167,7 +167,7 @@ static int imx_wm8524_probe(struct platform_device *pdev)
codec_pdev = of_find_device_by_node(codec_np);
if (!codec_pdev || !codec_pdev->dev.driver) {
- 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;
}