Skip to content

Commit

Permalink
MIPS: AR7, BCM63xx: fix gpio_to_irq() return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jul 5, 2010
1 parent e48682d commit cdf22a4
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/mach-ar7/gpio.h
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion arch/mips/include/asm/mach-bcm63xx/gpio.h
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

#include <bcm63xx_gpio.h>

#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

0 comments on commit cdf22a4

Please sign in to comment.