Skip to content
Snippets Groups Projects
Commit fa63bd4a authored by roel kluin's avatar roel kluin Committed by Liam Girdwood
Browse files

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


The index is missing so the return is wrong.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 923430cf
Branches
Tags
No related merge requests found
...@@ -173,7 +173,7 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c, ...@@ -173,7 +173,7 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c,
init_data, pmic); init_data, pmic);
if (IS_ERR(pmic->rdev[i])) { if (IS_ERR(pmic->rdev[i])) {
dev_err(&i2c->dev, "failed to register %s\n", id->name); dev_err(&i2c->dev, "failed to register %s\n", id->name);
err = PTR_ERR(pmic->rdev); err = PTR_ERR(pmic->rdev[i]);
goto error; goto error;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment