projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
567e4f9
)
ASoC: es8328: fix error return code in es8328_codec_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Mon, 1 Sep 2014 00:47:50 +0000
(08:47 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 1 Sep 2014 10:34:00 +0000
(11:34 +0100)
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/es8328.c
b/sound/soc/codecs/es8328.c
index 7a9f65ad183d4541660fb4dd98e8a34ec6b379ba..3ff787063304381ee086876031df2eb5a9ee7ac9 100644
(file)
--- a/
sound/soc/codecs/es8328.c
+++ b/
sound/soc/codecs/es8328.c
@@
-665,6
+665,7
@@
static int es8328_codec_probe(struct snd_soc_codec *codec)
es8328->clk = devm_clk_get(codec->dev, NULL);
if (IS_ERR(es8328->clk)) {
dev_err(codec->dev, "codec clock missing or invalid\n");
+ ret = PTR_ERR(es8328->clk);
goto clk_fail;
}