OSDN Git Service

ARM: omap1: Remove reliance on GPIO numbers from SX1
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 30 Apr 2023 15:45:29 +0000 (17:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 May 2023 13:01:28 +0000 (15:01 +0200)
commit480c82daa3e41873421dc2c9e2918ad7e21d7a0b
tree0ceb75a1f00ee8e285f8e966c222584abddb9b38
parent4c40db6249ff1da335b276bdd6c3c3462efbc2ab
ARM: omap1: Remove reliance on GPIO numbers from SX1

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-sx1.c