regulator: missing index in PTR_ERR() in isl6271a_probe()
PATCH 1/1 regulator: missing index in PTR_ERR() in isl6271a_probe()
The index is missing so the return is wrong.
Signed-off-by Roel Kluin <[email protected]>
--- drivers/regulator/isl6271a-regulator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/isl6271a-regulator.c +1 -1
@@ -169,7 +169,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; } }
Quoted 3 lines · roel kluin
The index is missing so the return is wrong.
Signed-off-by Roel Kluin <[email protected]>
Acked-by Mark Brown <[email protected]>
Liam Girdwood
AppliedQuoted 6 lines · roel kluin
The index is missing so the return is wrong.
Signed-off-by Roel Kluin <[email protected]>--- drivers/regulator/isl6271a-regulator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied.
Thanks
Liam
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk