Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe

In probe(), the dev_err() is used for every returned error.

Replace dev_err() with dev_err_probe() where -EPROBE_DEFER can be
returned.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://msgid.link/r/20240402071213.11671-5-bastien.curutchet@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bastien Curutchet and committed by
Mark Brown
6b1517b3 904fb8f8

+1 -1
+1 -1
sound/soc/ti/davinci-i2s.c
··· 708 708 709 709 ret = edma_pcm_platform_register(&pdev->dev); 710 710 if (ret) { 711 - dev_err(&pdev->dev, "register PCM failed: %d\n", ret); 711 + dev_err_probe(&pdev->dev, ret, "register PCM failed\n"); 712 712 goto err_unregister_component; 713 713 } 714 714