summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-12-22 05:16:35 +0300
committerMark Brown <broonie@kernel.org>2015-12-23 02:51:53 +0300
commit36ddd489b0669f8913c8eda192507f8267749917 (patch)
tree312b8c304e0743bd15dc495f02831b68cbc73c06 /sound/soc
parentb1d15059957d33d111e0ed38724a6b2c5caac790 (diff)
downloadlinux-36ddd489b0669f8913c8eda192507f8267749917.tar.xz
ASoC: rt5616: Return error if device ID mismatch
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/rt5616.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index f4005cbaa99d..0e9414abab65 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1314,7 +1314,7 @@ static int rt5616_i2c_probe(struct i2c_client *i2c,
dev_err(&i2c->dev,
"Device with ID register %#x is not rt5616\n",
val);
- ret = -ENODEV;
+ return -ENODEV;
}
regmap_write(rt5616->regmap, RT5616_RESET, 0);
regmap_update_bits(rt5616->regmap, RT5616_PWR_ANLG1,