From: Axel Lin Date: Tue, 22 Dec 2015 02:16:35 +0000 (+0800) Subject: ASoC: rt5616: Return error if device ID mismatch X-Git-Tag: v5.15~14325^2~37^2~1^2~3^3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36ddd489b0669f8913c8eda192507f8267749917;p=platform%2Fkernel%2Flinux-starfive.git ASoC: rt5616: Return error if device ID mismatch Signed-off-by: Axel Lin Acked-by: Bard Liao Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c index f4005cb..0e9414a 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,