提交 a9c5d23a 编写于 作者: M Matt Hsu 提交者: Ben Dooks

[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: NMatt Hsu <matt_hsu@openmoko.org>
[ben-linux@fluff.org: description improvement]
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 11e3bd09
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册