summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/es8328.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-09-01 08:47:50 +0800
committerMark Brown <broonie@kernel.org>2014-09-01 11:34:00 +0100
commit75c3daaad5a2f791e0fbad732690130ce1bc55d2 (patch)
tree254dbd5177d1c9848d7f441286f10bf473df87d1 /sound/soc/codecs/es8328.c
parent567e4f98922ce5542f8c2aa469a0c6ddf182b6ea (diff)
downloadlinux-75c3daaad5a2f791e0fbad732690130ce1bc55d2.tar.gz
linux-75c3daaad5a2f791e0fbad732690130ce1bc55d2.tar.bz2
linux-75c3daaad5a2f791e0fbad732690130ce1bc55d2.zip
ASoC: es8328: fix error return code in es8328_codec_probe()
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>
Diffstat (limited to 'sound/soc/codecs/es8328.c')
-rw-r--r--sound/soc/codecs/es8328.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index 7a9f65ad183d..3ff787063304 100644
--- 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;
}