summaryrefslogtreecommitdiffstats
path: root/drivers/soc/imx/gpcv2.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-08-08 16:00:32 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-09 06:34:53 +0200
commitc1c460b7e44c1c46f819232a32cbfdf9c7b06ade (patch)
tree24006d010e90fe6a8fba1bcf3ac985b77b27f7d6 /drivers/soc/imx/gpcv2.c
parent1da26bfb9da2d0d0054169b15d90e9a2c85ae902 (diff)
downloadbarebox-c1c460b7e44c1c46f819232a32cbfdf9c7b06ade.tar.gz
barebox-c1c460b7e44c1c46f819232a32cbfdf9c7b06ade.tar.xz
soc: imx: gpcv2: associate PGC device tree node with platform device
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> Link: https://lore.barebox.org/20220808140035.1672733-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/soc/imx/gpcv2.c')
-rw-r--r--drivers/soc/imx/gpcv2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index 62cfc21519..a0e78ce55e 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);