From: Matt Hsu Date: Tue, 2 Dec 2008 19:03:28 +0000 (+0000) Subject: [ARM] S3C64XX: Correct the EINT IRQ type configuration X-Git-Tag: v2.6.29-rc1~559^2~9^2~9^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a9c5d23ac724a3b908833cafbbbd49abe4741b86;p=linux-2.6-omap-h63xx.git [ARM] S3C64XX: Correct the EINT IRQ type configuration Select the correct EINT configuration register when configuring the external interrupt level/edge type. Signed-off-by: Matt Hsu [ben-linux@fluff.org: description improvement] Signed-off-by: Ben Dooks --- diff --git a/arch/arm/plat-s3c64xx/irq-eint.c b/arch/arm/plat-s3c64xx/irq-eint.c index 8c01f9cd94b..1f7cc0067f5 100644 --- a/arch/arm/plat-s3c64xx/irq-eint.c +++ b/arch/arm/plat-s3c64xx/irq-eint.c @@ -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;