Commit 36ddd489 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: rt5616: Return error if device ID mismatch

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarBard Liao <bardliao@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b1d15059
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment