* [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register
@ 2013-09-04 6:42 Sachin Kamat
2013-09-04 9:52 ` Mark Brown
2013-09-04 23:59 ` Sangbeom Kim
0 siblings, 2 replies; 3+ messages in thread
From: Sachin Kamat @ 2013-09-04 6:42 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, sbkim73, sachin.kamat
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>
---
drivers/regulator/s2mps11.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index 163b232..7a90a16 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -293,7 +293,8 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
config.init_data = pdata->regulators[i].initdata;
config.driver_data = s2mps11;
- s2mps11->rdev[i] = regulator_register(®ulators[i], &config);
+ s2mps11->rdev[i] = devm_regulator_register(&pdev->dev,
+ ®ulators[i], &config);
if (IS_ERR(s2mps11->rdev[i])) {
ret = PTR_ERR(s2mps11->rdev[i]);
dev_err(&pdev->dev, "regulator init failed for %d\n",
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register
2013-09-04 6:42 [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register Sachin Kamat
@ 2013-09-04 9:52 ` Mark Brown
2013-09-04 23:59 ` Sangbeom Kim
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-09-04 9:52 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel, sbkim73
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
On Wed, Sep 04, 2013 at 12:12:15PM +0530, Sachin Kamat wrote:
> 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.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register
2013-09-04 6:42 [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register Sachin Kamat
2013-09-04 9:52 ` Mark Brown
@ 2013-09-04 23:59 ` Sangbeom Kim
1 sibling, 0 replies; 3+ messages in thread
From: Sangbeom Kim @ 2013-09-04 23:59 UTC (permalink / raw)
To: 'Sachin Kamat', linux-kernel; +Cc: broonie
On Wednesday, September 04, 2013 3:42 PM, Sachin Kamat wrote:
> 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.
>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Thanks,
Sangbeom.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-04 23:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 6:42 [PATCH 1/1] regulator: s2mps11: Use devm_regulator_register Sachin Kamat
2013-09-04 9:52 ` Mark Brown
2013-09-04 23:59 ` Sangbeom Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox