]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit0812db94374867324a7811b733f95d5aa06e28b5
tree0347d8c4e700ef02db940766ae59d7e037618695
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
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