diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-09-01 08:47:50 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-01 11:34:00 +0100 |
commit | 75c3daaad5a2f791e0fbad732690130ce1bc55d2 (patch) | |
tree | 254dbd5177d1c9848d7f441286f10bf473df87d1 /sound/soc/codecs/es8328.c | |
parent | 567e4f98922ce5542f8c2aa469a0c6ddf182b6ea (diff) |
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.c | 1 |
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; } |