]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[ARM] S3C64XX: Correct the EINT IRQ type configuration
authorMatt Hsu <matt_hsu@openmoko.org>
Tue, 2 Dec 2008 19:03:28 +0000 (19:03 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 16 Dec 2008 10:19:26 +0000 (10:19 +0000)
Select the correct EINT configuration register when configuring
the external interrupt level/edge type.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
[ben-linux@fluff.org: description improvement]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/irq-eint.c

index 8c01f9cd94b697e29b02a0a32bc3f7c8f37a2320..1f7cc0067f5cdd19fad4c487b2a2821687de3b92 100644 (file)
@@ -82,7 +82,7 @@ static int s3c_irq_eint_set_type(unsigned int irq, unsigned int type)
        if (offs > 27)
                return -EINVAL;
 
-       if (offs > 15)
+       if (offs <= 15)
                reg = S3C64XX_EINT0CON0;
        else
                reg = S3C64XX_EINT0CON1;