mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
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>
This commit is contained in:
parent
b1d1505995
commit
36ddd489b0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user