diff options
author | Bastien Curutchet <[email protected]> | 2024-04-02 09:12:04 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-04-09 16:58:35 +0100 |
commit | 6b1517b30d6dc9442d92f0273726f1e7390eff2c (patch) | |
tree | bf0f5c41f2020120904b6c197686678bd56d3bb0 | |
parent | 904fb8f843a99ae7473d184412b6c7bd46a51593 (diff) |
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 <[email protected]>
Acked-by: Peter Ujfalusi <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/ti/davinci-i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/davinci-i2s.c b/sound/soc/ti/davinci-i2s.c index 5c906641640e..cd64f1384e18 100644 --- a/sound/soc/ti/davinci-i2s.c +++ b/sound/soc/ti/davinci-i2s.c @@ -708,7 +708,7 @@ static int davinci_i2s_probe(struct platform_device *pdev) ret = edma_pcm_platform_register(&pdev->dev); if (ret) { - dev_err(&pdev->dev, "register PCM failed: %d\n", ret); + dev_err_probe(&pdev->dev, ret, "register PCM failed\n"); goto err_unregister_component; } |