提交 36ddd489 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: rt5616: Return error if device ID mismatch

Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NBard Liao <bardliao@realtek.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 b1d15059
...@@ -1314,7 +1314,7 @@ static int rt5616_i2c_probe(struct i2c_client *i2c, ...@@ -1314,7 +1314,7 @@ static int rt5616_i2c_probe(struct i2c_client *i2c,
dev_err(&i2c->dev, dev_err(&i2c->dev,
"Device with ID register %#x is not rt5616\n", "Device with ID register %#x is not rt5616\n",
val); val);
ret = -ENODEV; return -ENODEV;
} }
regmap_write(rt5616->regmap, RT5616_RESET, 0); regmap_write(rt5616->regmap, RT5616_RESET, 0);
regmap_update_bits(rt5616->regmap, RT5616_PWR_ANLG1, regmap_update_bits(rt5616->regmap, RT5616_PWR_ANLG1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册