]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: ams-delta: assign MODEM IRQ from GPIO descriptor
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Sun, 9 Sep 2018 23:44:17 +0000 (01:44 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 20 Sep 2018 21:06:43 +0000 (14:06 -0700)
commit33bcff213aac65243c6a862df7a10ad36d846435
tree0347d8c4e700ef02db940766ae59d7e037618695
parent0ff97265403d59a684be8666710156706ccfd8fa
ARM: OMAP1: ams-delta: assign MODEM IRQ from GPIO descriptor

Don't request MODEM IRQ GPIO by its global number in
ams_delta_modem_init().  Instead, obtain its GPIO descriptor
and assign related IRQ to the MODEM.  Do that from
omap_gpio_deps_init(), where the chip is already looked up.  Then, in
ams_delta_modem_init(), just check for the IRQ number having been
already assigned.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c