From b306cc489a14e03e56d8712561103921e54a9a4b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 18 Mar 2010 10:56:28 +0000 Subject: [PATCH] we have a maximum of 32 gpios SVN-Revision: 20265 --- .../ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h b/target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h index 6f05e38eace..4176bfd8092 100644 --- a/target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h +++ b/target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h @@ -99,7 +99,7 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) static inline int gpio_is_valid(int number) { - return ((unsigned)number) < 16; + return ((unsigned)number) < 32; } #endif