]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
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

index f79505b436092bd19f278da615353b5d0835aebe..9ba1caebca5f5b7980a897c131d0b8e98171039f 100644 (file)
@@ -1,10 +1,7 @@
 #ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
 #define __ASM_MIPS_MACH_LANTIQ_GPIO_H
 
-static inline int gpio_to_irq(unsigned int gpio)
-{
-       return -1;
-}
+#define gpio_to_irq __gpio_to_irq
 
 #define gpio_get_value __gpio_get_value
 #define gpio_set_value __gpio_set_value