Re: [PATCH 2/2] ACPI/IORT: use platform_device_set_fwnode()
Sudeep Holla <[email protected]> Tue, 28 Jul 2026 16:59:10 +0100
| Newsgroups | org.kernel.vger.linux-acpi,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260728-dramatic-famous-chihuahua-cce6a2@sudeepholla> |
On Tue, Jul 28, 2026 at 04:07:17PM +0200, Bartosz Golaszewski wrote: > Platform devices using the split approach of calling > platform_device_alloc() and platform_device_add() must not assign the > firmware nodes manually but use the provided > platform_device_set_fwnode() function which additionally makes sure we > track the reference count of the firmware node correctly. > > Replace the manual assignment of the firmware node with a call to > platform_device_set_fwnode(). > > Signed-off-by: Bartosz Golaszewski <[email protected]> > --- > drivers/acpi/arm64/iort.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index 34412cd697d8bdc3654c40ca539ddc695a926a26..1020ac953e428797b5b90bd73c6c6ae35e6fd352 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -1992,7 +1992,7 @@ static int __init iort_add_platform_device(struct acpi_iort_node *node, > goto dev_put; > } > > - pdev->dev.fwnode = fwnode; > + platform_device_set_fwnode(pdev, fwnode); > Acked-by: Sudeep Holla <[email protected]> With the condition specified in 1/2. I assume you plan to take it via the same tree that introduces platform_device_set_fwnode() ? -- Regards, Sudeep