[PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

Shengjiu Wang shengjiu.wang at gmail.com
Thu Jun 3 12:54:56 AEST 2021


On Wed, Jun 2, 2021 at 11:45 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Shengjiu,
>
> On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang <shengjiu.wang at 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.

ok, let me update it.

best regards
wang shengjiu


More information about the Linuxppc-dev mailing list