diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-05-20 08:08:24 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-20 17:57:21 +0100 |
commit | 833bc4cf9754643acc69b3c6b65988ca78df4460 (patch) | |
tree | 0617ee777b60cfb3c1e3d4844c18ebe147ea5759 /sound | |
parent | 8c08652614cb7468620a6328b37ca2965cd48283 (diff) | |
download | linux-833bc4cf9754643acc69b3c6b65988ca78df4460.tar.bz2 |
ASoC: cs35l33: fix an error code in probe()
This error path returns zero (success) but it should return -EINVAL.
Fixes: 3333cb7187b9 ("ASoC: cs35l33: Initial commit of the cs35l33 CODEC driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/YKXuyGEzhPT35R3G@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs35l33.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c index 7ad7b733af9b..e8f3dcfd144d 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -1201,6 +1201,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client, dev_err(&i2c_client->dev, "CS35L33 Device ID (%X). Expected ID %X\n", devid, CS35L33_CHIP_ID); + ret = -EINVAL; goto err_enable; } |