diff options
author | Yoichi Yuasa <yuasa@linux-mips.org> | 2010-05-24 17:36:24 +0900 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-07-05 17:17:26 +0100 |
commit | cdf22a4e90ea3ea8e6a7dd9d2fa810b4a3cdfaed (patch) | |
tree | ece77d50f0bcfb06dfd52c313a61918309c086f4 /arch/mips/include/asm/mach-ar7/gpio.h | |
parent | e48682ddaa8c553fe36a01be9fa07e2556a640df (diff) | |
download | op-kernel-dev-cdf22a4e90ea3ea8e6a7dd9d2fa810b4a3cdfaed.zip op-kernel-dev-cdf22a4e90ea3ea8e6a7dd9d2fa810b4a3cdfaed.tar.gz |
MIPS: AR7, BCM63xx: fix gpio_to_irq() return value
The return value of gpio_to_irq() is not a pointer but an integer.
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/1280/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-ar7/gpio.h')
-rw-r--r-- | arch/mips/include/asm/mach-ar7/gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-ar7/gpio.h b/arch/mips/include/asm/mach-ar7/gpio.h index 73f9b16..abc317c 100644 --- a/arch/mips/include/asm/mach-ar7/gpio.h +++ b/arch/mips/include/asm/mach-ar7/gpio.h @@ -24,7 +24,7 @@ #define AR7_GPIO_MAX 32 #define NR_BUILTIN_GPIO AR7_GPIO_MAX -#define gpio_to_irq(gpio) NULL +#define gpio_to_irq(gpio) -1 #define gpio_get_value __gpio_get_value #define gpio_set_value __gpio_set_value |