Merge branch 'gpio/next' of git://git.secretlab.ca/git/linux-2.6
[platform/kernel/linux-stable.git] / drivers / gpio / gpio-langwell.c
index e7a7ea7..d2eb57c 100644 (file)
@@ -225,7 +225,7 @@ static void lnw_irq_handler(unsigned irq, struct irq_desc *desc)
                gedr = gpio_reg(&lnw->chip, base, GEDR);
                pending = readl(gedr);
                while (pending) {
-                       gpio = __ffs(pending) - 1;
+                       gpio = __ffs(pending);
                        mask = BIT(gpio);
                        pending &= ~mask;
                        /* Clear before handling so we can't lose an edge */