projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28a3fb2
)
ASoC: soc-dapm: Switch to use dev_err_probe() helper
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 14 Sep 2022 13:33:55 +0000
(21:33 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 14 Sep 2022 14:06:02 +0000
(15:06 +0100)
dev_err() can be replace with dev_err_probe() which will check if error
code is -EPROBE_DEFER.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link:
https://lore.kernel.org/r/20220914133355.3779364-3-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index 47a7bf99472ec18ad764574aaf851321bbf7a9ac..2d105bfee387120f2e81867e9d7c7a9739b6d953 100644
(file)
--- a/
sound/soc/soc-dapm.c
+++ b/
sound/soc/soc-dapm.c
@@
-3764,9
+3764,8
@@
snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
return w;
request_failed:
- if (ret != -EPROBE_DEFER)
- dev_err(dapm->dev, "ASoC: Failed to request %s: %d\n",
- w->name, ret);
+ dev_err_probe(dapm->dev, ret, "ASoC: Failed to request %s\n",
+ w->name);
kfree_const(w->name);
name_failed:
kfree_const(w->sname);