Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5c9b9123b35e28dd7cb3012f3f8d4ea13a30631c
Commit:     5c9b9123b35e28dd7cb3012f3f8d4ea13a30631c
Parent:     9a79b2274186fade17134929d4f85b70d59a3840
Author:     Tim Harvey <[EMAIL PROTECTED]>
AuthorDate: Sat Jul 14 11:15:05 2007 +0200
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 09:51:52 2007 +0100

    [ARM] ixp4xx: fix IRQ GPIO direction configuration for GPIOs >= 8
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-ixp4xx/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c
index 8112f72..4c54a86 100644
--- a/arch/arm/mach-ixp4xx/common.c
+++ b/arch/arm/mach-ixp4xx/common.c
@@ -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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to