2 Jun
2021
2 Jun
'21
5:43 p.m.
Hi Shengjiu,
On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang shengjiu.wang@nxp.com wrote:
Don't need to print error message for defer probe
...
if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
dev_err(&pdev->dev, "failed to find codec device\n");
dev_dbg(&pdev->dev, "failed to find codec device\n");
You may consider using dev_err_probe() here, which fits exactly this purpose.