ARM: omap1: Remove reliance on GPIO numbers from PalmTE
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 30 Apr 2023 09:56:23 +0000 (11:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 May 2023 13:01:27 +0000 (15:01 +0200)
commit4c40db6249ff1da335b276bdd6c3c3462efbc2ab
tree33414afbab6152e7f4473b998731fee9c08e00ad
parentfa1ae0cd897b089b5cc05ab471518ad13db2d567
ARM: omap1: Remove reliance on GPIO numbers from PalmTE

It appears this happens because the OMAP driver now
allocates GPIO numbers dynamically, so all that is
references by number is a bit up in the air.

Utilize the NULL device to define some board-specific
GPIO lookups and use these to immediately look up the
same GPIOs, convert to IRQ numbers and pass as resources
to the devices. This is ugly but should work.

Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-omap1/board-palmte.c