Skip to content

Commit

Permalink
regulator: pv88060: fix error handling in probe
Browse files Browse the repository at this point in the history
There were some missing "ret = " assignments here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Dec 1, 2015
1 parent 8846794 commit 3c0a2f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/pv88060-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c0a2f6

Please sign in to comment.