aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-omap.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-04-21 11:44:45 -0400
committerKevin Hilman <khilman@ti.com>2011-06-16 14:13:02 -0400
commitbdba15db4d81940776ab96ea9f558b7388b0f7fe (patch)
tree339032903ae5d39e58c9f76e058354db4a105e9f /drivers/gpio/gpio-omap.c
parentdf3c851716424fda0c7b14c4cae71cea467a9944 (diff)
gpio/omap: remove MPUIO handling from _clear_gpio_irqbank()
Remove the OMAP1 #ifdef and MPUIO special case for _clear_gpio_irqbank() The MPUIOs do not need a register access to ack/clear the IRQ status, since reading the IRQ status clears it. In addition, the MPUIO irq_chip has an empty ack method, so _clear_gpio_irqbank() is never used for MPUIOs. Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r--drivers/gpio/gpio-omap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 2ca814294c5e..7135810a77bc 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -657,12 +657,6 @@ static void _clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask)
657 void __iomem *reg = bank->base; 657 void __iomem *reg = bank->base;
658 658
659 switch (bank->method) { 659 switch (bank->method) {
660#ifdef CONFIG_ARCH_OMAP1
661 case METHOD_MPUIO:
662 /* MPUIO irqstatus is reset by reading the status register,
663 * so do nothing here */
664 return;
665#endif
666#ifdef CONFIG_ARCH_OMAP15XX 660#ifdef CONFIG_ARCH_OMAP15XX
667 case METHOD_GPIO_1510: 661 case METHOD_GPIO_1510:
668 reg += OMAP1510_GPIO_INT_STATUS; 662 reg += OMAP1510_GPIO_INT_STATUS;