[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 <matt_hsu@openmoko.org>
[ben-linux@fluff.org: description improvement]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
Matt Hsu 2008-12-02 19:03:28 +00:00 коммит произвёл Ben Dooks
Родитель 11e3bd0923
Коммит a9c5d23ac7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;