ASoC: rt5616: Return error if device ID mismatch
authorAxel Lin <axel.lin@ingics.com>
Tue, 22 Dec 2015 02:16:35 +0000 (10:16 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Dec 2015 23:51:53 +0000 (23:51 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5616.c

index f4005cbaa99dee8cb2c208d6620774caf554fc12..0e9414abab65254e9ec03201bbddda56f19bcaa7 100644 (file)
@@ -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,