MLK-24290-3 ASoC: imx-wm8960: 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>5.4-rM2-2.2.x-imx-squashed
parent
4e94c9e1a0
commit
65e9cfc5f0
|
@ -511,7 +511,7 @@ static int imx_wm8960_probe(struct platform_device *pdev)
|
|||
|
||||
codec_dev = of_find_i2c_device_by_node(codec_np);
|
||||
if (!codec_dev || !codec_dev->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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue