[PATCH v5 4/4] ARM: omap1: enable real software node lookup of GPIOs on Nokia 770

Bartosz Golaszewski brgl at kernel.org
Fri Apr 3 00:23:11 PDT 2026


On Thu, Apr 2, 2026 at 7:32 PM Dmitry Torokhov
<dmitry.torokhov at gmail.com> wrote:
>
> 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.

For sure, that's the plan. I will respin this after v7.1-rc1 with that change.

Bart



More information about the linux-arm-kernel mailing list