aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2010-03-18 10:56:28 +0000
committerJohn Crispin <blogic@openwrt.org>2010-03-18 10:56:28 +0000
commit83ea215912e27e95e01a834c0d4a615d1cdc2ea8 (patch)
treecaef19b1f89690fb0f4b8bca3b825f61f20619be /target
parent3dead2d4a1305d1eb587a5a82f40675aed74ef0e (diff)
downloadupstream-83ea215912e27e95e01a834c0d4a615d1cdc2ea8.tar.gz
upstream-83ea215912e27e95e01a834c0d4a615d1cdc2ea8.tar.bz2
upstream-83ea215912e27e95e01a834c0d4a615d1cdc2ea8.zip
[ifxmips] we have a maximum of 32 gpios
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20265 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h2
1 files changed, 1 insertions, 1 deletions
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 6f05e38eac..4176bfd809 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