Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8742bc92c36324ac4bac739ab413acc6630a875d
Commit:     8742bc92c36324ac4bac739ab413acc6630a875d
Parent:     4f6627ac3ba6948a4aebec80edfd6565aec3a40c
Author:     Herbert Valerio Riedel <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 16 16:44:39 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Thu Sep 20 09:21:10 2007 +0100

    [ARM] 4569/1: ep93xx_gpio_irq_type(): fix spurious enumeration offset for 
FGPIO handling
    
    The EP93XX_GPIO_LINE_F() macro is supposed to be called with a line
    number between 0 and 7, but the current code causes it to get called
    with an spuriously offset number range {16..23}.
    
    Signed-off-by: Herbert Valerio Riedel <[EMAIL PROTECTED]>
    Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-ep93xx/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index 851cc71..70b2c78 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -336,7 +336,7 @@ static int ep93xx_gpio_irq_type(unsigned int irq, unsigned 
int type)
        if (line >= 0 && line < 16) {
                gpio_line_config(line, GPIO_IN);
        } else {
-               gpio_line_config(EP93XX_GPIO_LINE_F(line), GPIO_IN);
+               gpio_line_config(EP93XX_GPIO_LINE_F(line-16), GPIO_IN);
        }
 
        port = line >> 3;
-
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