diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-12-14 11:08:41 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-20 12:47:22 +0000 |
commit | 27c6eaebcf75e4fac145d17c7fa76bc64b60d24c (patch) | |
tree | 329d0ffc9e99afb1e2a47117a530506daae4ed32 /sound/soc/samsung/arndale.c | |
parent | b3a66d22a2fd5435bf4d0a357e220cfca88ae5e2 (diff) | |
download | lwn-27c6eaebcf75e4fac145d17c7fa76bc64b60d24c.tar.gz lwn-27c6eaebcf75e4fac145d17c7fa76bc64b60d24c.zip |
ASoC: samsung: Use dev_err_probe() helper
Use the dev_err_probe() helper, instead of open-coding the same
operation.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20211214020843.2225831-21-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung/arndale.c')
-rw-r--r-- | sound/soc/samsung/arndale.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/samsung/arndale.c b/sound/soc/samsung/arndale.c index 606ac5e33a8e..a5dc640d0d76 100644 --- a/sound/soc/samsung/arndale.c +++ b/sound/soc/samsung/arndale.c @@ -174,9 +174,8 @@ static int arndale_audio_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(card->dev, card); if (ret) { - if (ret != -EPROBE_DEFER) - 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_of_nodes; } return 0; |