mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master v3 1/4] soc: imx: gpcv2: associate PGC device tree node with platform device
@ 2022-08-08 14:00 Ahmad Fatoum
  2022-08-08 14:00 ` [PATCH master v3 2/4] drivers: power: ignore power domains with barebox,allow-dummy Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2022-08-08 14:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We aren't using of_platform_device_create, but instead create our own
platform devices which lack a reference from the device tree node to the
newly created device. Add this reference to support of_device_ensure_probed.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v2 -> v3:
  - no change
v1 -> v2:
  - no change
---
 drivers/soc/imx/gpcv2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index 62cfc21519b1..a0e78ce55e3e 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -483,10 +483,10 @@ again:
 
 		pd_dev = xzalloc(sizeof(*pd_dev));
 		pd_dev->device_node = np;
+		pd_dev->device_node->dev = pd_dev;
 		pd_dev->id = domain_index;
 		pd_dev->parent = dev;
 		pd_dev->priv = domain;
-		pd_dev->device_node = np;
 		dev_set_name(pd_dev, imx_pgc_domain_id[0].name);
 
 		ret = platform_device_register(pd_dev);
-- 
2.30.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-09  4:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 14:00 [PATCH master v3 1/4] soc: imx: gpcv2: associate PGC device tree node with platform device Ahmad Fatoum
2022-08-08 14:00 ` [PATCH master v3 2/4] drivers: power: ignore power domains with barebox,allow-dummy Ahmad Fatoum
2022-08-08 14:00 ` [PATCH master v3 3/4] ARM: i.MX8MM: assume USBOTG power domains to be powered Ahmad Fatoum
2022-08-08 14:00 ` [PATCH master v3 4/4] ARM: i.MX8MN: " Ahmad Fatoum
2022-08-09  4:35 ` [PATCH master v3 1/4] soc: imx: gpcv2: associate PGC device tree node with platform device Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox