Re: [PATCH] ASoC: fsl-asoc-card: Log error code when we fail to register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 7, 2023 at 7:13 AM Mark Brown <broonie@xxxxxxxxxx> wrote:

> The chances are that any error we see here will be EPROBE_DEFER but let's
> actually tell the user so they know.
>
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
>

Acked-by: Shengjiu Wang <shengjiu.wang@xxxxxxxxx>

Best regards
Wang shengjiu

> ---
>  sound/soc/fsl/fsl-asoc-card.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
> index c836848ef0a6..58834e56a278 100644
> --- a/sound/soc/fsl/fsl-asoc-card.c
> +++ b/sound/soc/fsl/fsl-asoc-card.c
> @@ -855,7 +855,7 @@ static int fsl_asoc_card_probe(struct platform_device
> *pdev)
>
>         ret = devm_snd_soc_register_card(&pdev->dev, &priv->card);
>         if (ret) {
> -               dev_err_probe(&pdev->dev, ret, "snd_soc_register_card
> failed\n");
> +               dev_err_probe(&pdev->dev, ret, "snd_soc_register_card
> failed: %d\n", ret);
>                 goto asrc_fail;
>         }
>
>
> ---
> base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2
> change-id: 20230106-asoc-fsl-err-log-4915ba3fc6c4
>
> Best regards,
> --
> Mark Brown <broonie@xxxxxxxxxx>
>



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux