[PATCH] ASoC: fsl-asoc-card: Log error code when we fail to register
Shengjiu Wang
shengjiu.wang at gmail.com
Tue Jan 10 06:23:28 CET 2023
On Sat, Jan 7, 2023 at 7:13 AM Mark Brown <broonie at kernel.org> 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 at kernel.org>
>
Acked-by: Shengjiu Wang <shengjiu.wang at gmail.com>
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 at kernel.org>
>
More information about the Alsa-devel
mailing list