]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] ixp4xx: fix IRQ GPIO direction configuration for GPIOs >= 8
authorTim Harvey <tim_harvey@yahoo.com>
Sat, 14 Jul 2007 09:15:05 +0000 (11:15 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 20 Jul 2007 08:51:52 +0000 (09:51 +0100)
I believe that the following patch is necessary to properly configure
GPIO line configuration for IRQ's which are mapped to a GPIO line >= 8
(without this patch the wrong GPIO is configured as an input.)

Signed-off-by: Tim Harvey <tim_harvey@yahoo.com>
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp4xx/common.c

index 8112f726ffa0885e2edd505b3a0e17ad5e925b0f..4c54a86eda3a787a544e0e3d63aae127e5232c51 100644 (file)
@@ -188,7 +188,7 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
        *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
 
        /* Configure the line as an input */
-       gpio_line_config(line, IXP4XX_GPIO_IN);
+       gpio_line_config(irq2gpio[irq], IXP4XX_GPIO_IN);
 
        return 0;
 }