diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-04 02:42:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-16 19:28:40 -0400 |
commit | d55cd794d6ae9d0730c0b039c0a2d5d0e5ff12c4 (patch) | |
tree | 59b9e4ab4e64383c35d8e22cb9bb397264586ad1 | |
parent | b15f5f7603fe9963e2201874f6e6c6cc0410b4d1 (diff) |
regulator: s2mps11: Use devm_regulator_register
Commit e398b51a ("regulator: s2mps11: Convert to devm_regulator_register()")
intended to do this conversion. However the actual conversion to devm_* got
missed out. Fix this.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/s2mps11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index d7c241e1a173..333677d68d0e 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c | |||
@@ -448,7 +448,8 @@ common_reg: | |||
448 | config.of_node = rdata[i].of_node; | 448 | config.of_node = rdata[i].of_node; |
449 | } | 449 | } |
450 | 450 | ||
451 | s2mps11->rdev[i] = regulator_register(®ulators[i], &config); | 451 | s2mps11->rdev[i] = devm_regulator_register(&pdev->dev, |
452 | ®ulators[i], &config); | ||
452 | if (IS_ERR(s2mps11->rdev[i])) { | 453 | if (IS_ERR(s2mps11->rdev[i])) { |
453 | ret = PTR_ERR(s2mps11->rdev[i]); | 454 | ret = PTR_ERR(s2mps11->rdev[i]); |
454 | dev_err(&pdev->dev, "regulator init failed for %d\n", | 455 | dev_err(&pdev->dev, "regulator init failed for %d\n", |