* [PATCH 2/2] regulator: gpio-regulator: fix can't find regulator node in dt
@ 2012-11-12 9:59 Frank Li
2012-11-13 7:41 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Frank Li @ 2012-11-12 9:59 UTC (permalink / raw)
To: linux-arm-kernel
Need initilize of_node in regulator config when register regulator,
otherwise regulator driver think it is no-dt device.
in regulator_dev_lookup
list_for_each_entry(r, ®ulator_list, list)
if (r->dev.parent &&
node == r->dev.of_node)
return r
r->dev.of_noe will be zero if miss config in cfg.
Signed-off-by: Frank Li <Frank.Li@freescale.com>
---
drivers/regulator/gpio-regulator.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c
index e467d0a..faa2f71 100644
--- a/drivers/regulator/gpio-regulator.c
+++ b/drivers/regulator/gpio-regulator.c
@@ -303,6 +303,7 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev)
cfg.dev = &pdev->dev;
cfg.init_data = config->init_data;
cfg.driver_data = drvdata;
+ cfg.of_node = np;
if (config->enable_gpio >= 0)
cfg.ena_gpio = config->enable_gpio;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] regulator: gpio-regulator: fix can't find regulator node in dt
2012-11-12 9:59 [PATCH 2/2] regulator: gpio-regulator: fix can't find regulator node in dt Frank Li
@ 2012-11-13 7:41 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-11-13 7:41 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 12, 2012 at 05:59:52PM +0800, Frank Li wrote:
> Need initilize of_node in regulator config when register regulator,
> otherwise regulator driver think it is no-dt device.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121113/f304e241/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-13 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 9:59 [PATCH 2/2] regulator: gpio-regulator: fix can't find regulator node in dt Frank Li
2012-11-13 7:41 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).