gpio/omap: convert gpio irq domain to linear mapping
authorJon Hunter <[email protected]>
Fri, 1 Mar 2013 17:22:47 +0000 (11:22 -0600)
committerGrant Likely <[email protected]>
Wed, 6 Mar 2013 01:12:25 +0000 (09:12 +0800)
commitede4d7a5b9835510fd1f724367f68d2fa4128453
treed4b82eaef823472aed0a18d5e58718433dca7151
parent165b6c2f33860e13d20cd7ac5993ea3acfb5ea34
gpio/omap: convert gpio irq domain to linear mapping

Currently the OMAP GPIO driver uses a legacy mapping for the GPIO IRQ
domain. This is not necessary because we do not need to assign a
specific interrupt number to the GPIO IRQ domain. Therefore, convert
the OMAP GPIO driver to use a linear mapping instead.

Please note that this also allows to simplify the logic in the OMAP
gpio_irq_handler() routine, by using irq_find_mapping() to obtain the
virtual irq number from the GPIO bank and bank index.

Reported-by: Linus Walleij <[email protected]>
Signed-off-by: Jon Hunter <[email protected]>
Reviewed-by: Felipe Balbi <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
drivers/gpio/gpio-omap.c