aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-08-15 09:41:50 -0400
committerJohn Crispin <blogic@openwrt.org>2012-09-13 04:30:59 -0400
commit6a88a0f762a61f212d4bbcf1ad45369f28014484 (patch)
tree8319195b86f4d74a381e0f812798f0c67f01d4a7 /arch
parent8e004b47b7645fe8ebe1bb81f75cd8f16650de68 (diff)
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/mach-lantiq/gpio.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/mips/include/asm/mach-lantiq/gpio.h b/arch/mips/include/asm/mach-lantiq/gpio.h
index f79505b43609..9ba1caebca5f 100644
--- a/arch/mips/include/asm/mach-lantiq/gpio.h
+++ b/arch/mips/include/asm/mach-lantiq/gpio.h
@@ -1,10 +1,7 @@
1#ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H 1#ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
2#define __ASM_MIPS_MACH_LANTIQ_GPIO_H 2#define __ASM_MIPS_MACH_LANTIQ_GPIO_H
3 3
4static inline int gpio_to_irq(unsigned int gpio) 4#define gpio_to_irq __gpio_to_irq
5{
6 return -1;
7}
8 5
9#define gpio_get_value __gpio_get_value 6#define gpio_get_value __gpio_get_value
10#define gpio_set_value __gpio_set_value 7#define gpio_set_value __gpio_set_value