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:
526f6ca
)
ASoC: codecs: sgtl5000: Use dev_err_probe() helper
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Tue, 14 Dec 2021 02:08:27 +0000
(11:08 +0900)
committer
Mark Brown
<broonie@kernel.org>
Mon, 20 Dec 2021 12:47:07 +0000
(12:47 +0000)
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-7-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sgtl5000.c
b/sound/soc/codecs/sgtl5000.c
index 97bf1f222805e0c5f1c8a5aecfe2ff703b755363..8eebf27d0ea246bbdaeef08fdffabfc544ff96e5 100644
(file)
--- a/
sound/soc/codecs/sgtl5000.c
+++ b/
sound/soc/codecs/sgtl5000.c
@@
-1612,9
+1612,8
@@
static int sgtl5000_i2c_probe(struct i2c_client *client,
if (ret == -ENOENT)
ret = -EPROBE_DEFER;
- if (ret != -EPROBE_DEFER)
- dev_err(&client->dev, "Failed to get mclock: %d\n",
- ret);
+ dev_err_probe(&client->dev, ret, "Failed to get mclock\n");
+
goto disable_regs;
}