MIPS: lantiq: make use of __gpio_to_irq
authorJohn Crispin <blogic@openwrt.org>
Wed, 15 Aug 2012 13:41:50 +0000 (15:41 +0200)
committerJohn Crispin <blogic@openwrt.org>
Thu, 13 Sep 2012 08:30:59 +0000 (10:30 +0200)
commit6a88a0f762a61f212d4bbcf1ad45369f28014484
tree8319195b86f4d74a381e0f812798f0c67f01d4a7
parent8e004b47b7645fe8ebe1bb81f75cd8f16650de68
MIPS: lantiq: make use of __gpio_to_irq

The gpio_chip struct allows us to set a .to_irq callback. Once this is set
we can rely on the generic __gpio_to_irq() function to map gpio->irq allowing
more than one gpio_chip to register an interrupt

Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/mach-lantiq/gpio.h