]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix GPIO IRQ edge control setting for OMAP16xx
authorJuha Yrjola <juha.yrjola@nokia.com>
Wed, 8 Feb 2006 15:56:22 +0000 (17:56 +0200)
committerJuha Yrjola <juha.yrjola@nokia.com>
Wed, 8 Feb 2006 15:56:22 +0000 (17:56 +0200)
Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
arch/arm/plat-omap/gpio.c

index 861f5536ff6c09f4018480686364a3140fed3c0e..a4afa1ef1f652d21711382ab7114c3416a9b5c0a 100644 (file)
@@ -451,9 +451,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger)
                l = __raw_readl(reg);
                l &= ~(3 << (gpio << 1));
                if (trigger & __IRQT_RISEDGE)
-                       l |= 2 << gpio;
+                       l |= 2 << (gpio << 1);
                else if (trigger & __IRQT_FALEDGE)
-                       l |= 1 << gpio;
+                       l |= 1 << (gpio << 1);
                else
                        goto bad;
                break;