]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix one more gpio SA_TRIGGER_* issue
authorTony Lindgren <tony@atomide.com>
Wed, 8 Feb 2006 09:07:58 +0000 (01:07 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 8 Feb 2006 09:07:58 +0000 (01:07 -0800)
Avoid other SA_TRIGGER_* flags triggering BUG()

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));