diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-01 09:29:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-01 14:18:15 +0100 |
commit | 3c0a2f64bcc14402cfdeca633e4210f33affa7a5 (patch) | |
tree | ecc4214de0a667be46c11ea5a7de5af410fdb36c /drivers/regulator | |
parent | regulator: pv88060: Fix irq leak (diff) | |
download | linux-3c0a2f64bcc14402cfdeca633e4210f33affa7a5.tar.xz linux-3c0a2f64bcc14402cfdeca633e4210f33affa7a5.zip |
regulator: pv88060: fix error handling in probe
There were some missing "ret = " assignments here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pv88060-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/pv88060-regulator.c b/drivers/regulator/pv88060-regulator.c index 69893f28122a..094376c8de4b 100644 --- a/drivers/regulator/pv88060-regulator.c +++ b/drivers/regulator/pv88060-regulator.c @@ -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); |