* [PATCH] regulator: da9052: initialize of_node param for regulator register
@ 2012-07-12 14:23 Axel Lin
2012-07-12 17:21 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-07-12 14:23 UTC (permalink / raw)
To: Mark Brown
Cc: David Dajun Chen, Ashish Jangam, Ying-Chun Liu (PaulLiu),
Liam Girdwood, linux-kernel
Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/regulator/da9052-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c
index 5f8f71a..903299c 100644
--- a/drivers/regulator/da9052-regulator.c
+++ b/drivers/regulator/da9052-regulator.c
@@ -410,6 +410,7 @@ static int __devinit da9052_regulator_probe(struct platform_device *pdev)
regulator->info->reg_desc.name)) {
config.init_data = of_get_regulator_init_data(
&pdev->dev, np);
+ config.of_node = np;
break;
}
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] regulator: da9052: initialize of_node param for regulator register
2012-07-12 14:23 [PATCH] regulator: da9052: initialize of_node param for regulator register Axel Lin
@ 2012-07-12 17:21 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-07-12 17:21 UTC (permalink / raw)
To: Axel Lin
Cc: David Dajun Chen, Ashish Jangam, Ying-Chun Liu (PaulLiu),
Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
On Thu, Jul 12, 2012 at 10:23:25PM +0800, Axel Lin wrote:
> Initialize config.of_node for regulator before registering.
> This is needed for DT based regulator support.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-12 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 14:23 [PATCH] regulator: da9052: initialize of_node param for regulator register Axel Lin
2012-07-12 17:21 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox