Re: [PATCH 02/10] ASoC: ti: davinci-evm: Use dev_err_probe() for error handling
From: Christophe JAILLET
Date: Tue Jul 14 2026 - 08:37:51 EST
Le 14/07/2026 à 14:00, phucduc.bui@xxxxxxxxx a écrit :
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Replace dev_err() with dev_err_probe() when reporting
devm_snd_soc_register_card() failures. This suppresses
unnecessary log messages for deferred probe errors.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/ti/davinci-evm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c
index ad514c2e5a25..7bcbb0067e25 100644
--- a/sound/soc/ti/davinci-evm.c
+++ b/sound/soc/ti/davinci-evm.c
@@ -247,7 +247,7 @@ static int davinci_evm_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, &evm_soc_card);
Nitpick: this blank new line could be removed.
CJ
if (ret) {
- dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
+ dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n");
goto err_put;
}