Messages in this thread |  | | Date | Thu, 2 Apr 2026 10:32:18 -0700 | | From | Dmitry Torokhov <> | | Subject | Re: [PATCH v5 4/4] ARM: omap1: enable real software node lookup of GPIOs on Nokia 770 |
| |
On Thu, Apr 02, 2026 at 04:15:05PM +0200, Bartosz Golaszewski wrote: > @@ -244,6 +263,13 @@ static int __init omap16xx_gpio_init(void) > iounmap(base); > > platform_device_register(omap16xx_gpio_dev[i]); > + > + ret = device_add_software_node(&omap16xx_gpio_dev[i]->dev, > + omap16xx_gpio_swnodes[i]); > + if (ret) { > + dev_err(&pdev->dev, "Failed to add software node.\n"); > + return ret; > + }
I think the best and safest way is to convert to using platform_driver_register_full() and set swnode in the relevant "info" instance.
Thanks.
-- Dmitry
|  |