diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2013-10-16 04:47:30 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-16 12:06:00 +0400 |
commit | 2f56e0a57ff1bbf973bec86e527f222de8c4b4f9 (patch) | |
tree | 763ed6b762c629fd15cca4a9d592e68d2e6aef93 /drivers/gpio/gpio-lpc32xx.c | |
parent | 263c43a4479ecce52c0fdc84b4620e146263d549 (diff) | |
download | linux-2f56e0a57ff1bbf973bec86e527f222de8c4b4f9.tar.xz |
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>
Diffstat (limited to 'drivers/gpio/gpio-lpc32xx.c')
0 files changed, 0 insertions, 0 deletions