Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yoichi Yuasa and committed by
Ralf Baechle
cdf22a4e e48682dd

+2 -2
+1 -1
arch/mips/include/asm/mach-ar7/gpio.h
··· 24 24 #define AR7_GPIO_MAX 32 25 25 #define NR_BUILTIN_GPIO AR7_GPIO_MAX 26 26 27 - #define gpio_to_irq(gpio) NULL 27 + #define gpio_to_irq(gpio) -1 28 28 29 29 #define gpio_get_value __gpio_get_value 30 30 #define gpio_set_value __gpio_set_value
+1 -1
arch/mips/include/asm/mach-bcm63xx/gpio.h
··· 3 3 4 4 #include <bcm63xx_gpio.h> 5 5 6 - #define gpio_to_irq(gpio) NULL 6 + #define gpio_to_irq(gpio) -1 7 7 8 8 #define gpio_get_value __gpio_get_value 9 9 #define gpio_set_value __gpio_set_value