From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH master v3 1/4] soc: imx: gpcv2: associate PGC device tree node with platform device
Date: Tue, 9 Aug 2022 06:35:08 +0200 [thread overview]
Message-ID: <20220809043508.GY31528@pengutronix.de> (raw)
In-Reply-To: <20220808140035.1672733-1-a.fatoum@pengutronix.de>
On Mon, Aug 08, 2022 at 04:00:32PM +0200, Ahmad Fatoum wrote:
> 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(-)
Applied, thanks
Sascha
>
> 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
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2022-08-09 4:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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
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 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220809043508.GY31528@pengutronix.de \
--to=sha@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox