ASoC: ti: ams-delta: Use dev_err_probe() for error handling

Use dev_err_probe() to replace dev_err() followed by returning
the error code. This keeps the error handling concise and
suppresses log messages for deferred probe errors.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260716103911.77652-2-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
bui duc phuc 2026-07-16 17:39:02 +07:00 committed by Mark Brown
parent f5098b6bae
commit 5413fb3ba5
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -574,9 +574,9 @@ static int ams_delta_probe(struct platform_device *pdev)
ret = snd_soc_register_card(card);
if (ret) {
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
card->dev = NULL;
return ret;
return dev_err_probe(&pdev->dev, ret,
"snd_soc_register_card() failed\n");
}
return 0;
}