[ifxmips] we have a maximum of 32 gpios
authorJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
SVN-Revision: 20265

target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h

index 6f05e38..4176bfd 100644 (file)
@@ -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