]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit2f56e0a57ff1bbf973bec86e527f222de8c4b4f9
tree763ed6b762c629fd15cca4a9d592e68d2e6aef93
parent263c43a4479ecce52c0fdc84b4620e146263d549
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