]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/gpio.c
ARM: OMAP: Fix one more gpio SA_TRIGGER_* issue
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / gpio.c
index c1d6243c3be80d597571f37ee920526896908142..861f5536ff6c09f4018480686364a3140fed3c0e 100644 (file)
@@ -446,7 +446,7 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger)
                        reg += OMAP1610_GPIO_EDGE_CTRL1;
                gpio &= 0x07;
                /* We allow only edge triggering, i.e. two lowest bits */
-               if (trigger & ~IRQT_BOTHEDGE)
+               if (trigger & (__IRQT_LOWLVL | __IRQT_HIGHLVL))
                        BUG();
                l = __raw_readl(reg);
                l &= ~(3 << (gpio << 1));