]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: convert to use irq_domain_add_simple()
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Sun, 6 Apr 2014 14:58:13 +0000 (16:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:08 +0000 (12:35 -0700)
commit384549874ae11b2119bf7a1a757f5841d550e160
tree9108e44c69001ff2e4b1e51a92bc01d350efd0ca
parent55e8f84feaa523c0ea26af02e3737d1a794c2210
gpio: omap: convert to use irq_domain_add_simple()

The GPIO OMAP driver supports different OMAP SoC families and
not all of them have the needed support to use the linear IRQ
domain mapping like OMAP1 that use the legacy domain mapping.

But this special check is not necessary since the simple IRQ
domain mapping is able to handle both cases. Having a zero
IRQ offset will be interpreted as a linear domain case while
a non-zero value will be interpreted as a legacy domain case.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c