Skip to content

Commit

Permalink
[ARM] S3C64XX: Correct the EINT IRQ type configuration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Hsu authored and Ben Dooks committed Dec 16, 2008
1 parent 11e3bd0 commit a9c5d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c64xx/irq-eint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9c5d23

Please sign in to comment.