]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/omap: use gpiolib API to mark a GPIO used as an IRQ
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Wed, 16 Oct 2013 00:47:30 +0000 (02:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Oct 2013 08:06:00 +0000 (10:06 +0200)
commitf616201e27e62147f492d0a67f276a87de569123
tree763ed6b762c629fd15cca4a9d592e68d2e6aef93
parentd9bc57e4f0abefa3ca9570f35f3b606643666ddc
gpio/omap: use gpiolib API to mark a GPIO used as an IRQ

The OMAP GPIO driver keeps track about GPIO pins that are
used as IRQ lines for two reasons:

1) To prevent GPIO banks to be disabled while one of their
   GPIO pins are only used as an interrupt line.

2) To not allow another caller to set the GPIO pin as output.

Now gpiolib has an API to mark GPIO pins as used as IRQ lines
so the GPIO core only allows to set as output GPIO pins not
tied to an IRQ. So there is no need to have custom code for 2).

The IRQ usage still has to be maintained locally for 1) though.

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