[PATCH] ASoC: fsl-asoc-card: Log error code when we fail to register
Mark Brown
broonie at kernel.org
Sat Jan 7 00:13:37 CET 2023
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>
---
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