Skip to content

Commit

Permalink
regulator: missing index in PTR_ERR() in isl6271a_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
roel kluin authored and Liam Girdwood committed Jan 12, 2011
1 parent 923430c commit fa63bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/isl6271a-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c,
init_data, pmic);
if (IS_ERR(pmic->rdev[i])) {
dev_err(&i2c->dev, "failed to register %s\n", id->name);
err = PTR_ERR(pmic->rdev);
err = PTR_ERR(pmic->rdev[i]);
goto error;
}
}
Expand Down

0 comments on commit fa63bd4

Please sign in to comment.