提交 3c0a2f64 编写于 作者: D Dan Carpenter 提交者: Mark Brown

regulator: pv88060: fix error handling in probe

There were some missing "ret = " assignments here.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 88467943
......@@ -351,14 +351,14 @@ static int pv88060_i2c_probe(struct i2c_client *i2c,
return ret;
}
regmap_write(chip->regmap, PV88060_REG_MASK_B, 0xFF);
ret = regmap_write(chip->regmap, PV88060_REG_MASK_B, 0xFF);
if (ret < 0) {
dev_err(chip->dev,
"Failed to mask B reg: %d\n", ret);
return ret;
}
regmap_write(chip->regmap, PV88060_REG_MASK_C, 0xFF);
ret = regmap_write(chip->regmap, PV88060_REG_MASK_C, 0xFF);
if (ret < 0) {
dev_err(chip->dev,
"Failed to mask C reg: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册