Commit fa63bd4aa53aecc38956cbdd50f8ff9ed0d6d5ba

Authored by roel kluin
Committed by Liam Girdwood
1 parent 923430cfee

regulator: missing index in PTR_ERR() in isl6271a_probe()

The index is missing so the return is wrong.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/regulator/isl6271a-regulator.c
... ... @@ -173,7 +173,7 @@
173 173 init_data, pmic);
174 174 if (IS_ERR(pmic->rdev[i])) {
175 175 dev_err(&i2c->dev, "failed to register %s\n", id->name);
176   - err = PTR_ERR(pmic->rdev);
  176 + err = PTR_ERR(pmic->rdev[i]);
177 177 goto error;
178 178 }
179 179 }