gpio/omap: maintain GPIO and IRQ usage separately
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Wed, 25 Sep 2013 00:36:52 +0000 (02:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Oct 2013 11:15:07 +0000 (13:15 +0200)
commitfa365e4d729065b5e85165df3dc9699ed47489cc
tree78afc81f56ed014973006a9f0a95c1ae512e25d3
parent272b98c6455f00884f0350f775c5342358ebb73f
gpio/omap: maintain GPIO and IRQ usage separately

The GPIO OMAP controller pins can be used as IRQ and GPIO
independently so is necessary to keep track GPIO pins and
IRQ lines usage separately to make sure that the bank will
always be enabled while being used.

Also move gpio_is_input() definition in preparation for the
next patch that setups the controller's irq_chip driver when
a caller requests an interrupt line.

Cc: stable@vger.kernel.org
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: George Cherian <george.cherian@ti.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Tested-by: Lars Poeschel <poeschel@lemonage.de>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c