MIPS: RB532: Check irq number when handling GPIO interrupts
commitd36773e53f4919627d43b1010df096c5d518a1f5
authorFlorian Fainelli <florian@openwrt.org>
Thu, 21 May 2009 17:49:47 +0000 (21 19:49 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 17 Jun 2009 10:06:27 +0000 (17 11:06 +0100)
tree11d46cd95681f7e7a04340ec7c966da86e9f0e6b
parent1c99dac8bf0dd5bd1a7600e81d1e5691f7338250
MIPS: RB532: Check irq number when handling GPIO interrupts

This patch makes sure that we are not going to clear
or change the interrupt status of a GPIO interrupt
superior to 13 as this is the maximum number of GPIO
interrupt source (p.232 of the RC32434 reference manual).

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/rb532/irq.c