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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue