aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-09-25 16:27:54 +0000
committerJohn Crispin <blogic@openwrt.org>2008-09-25 16:27:54 +0000
commitf5fd4e33673be1b20b3d52fac0b471fb492ac9ec (patch)
treeb34d955ee59a5fe4d268b5d3b10fbb0251223b15 /target/linux/ifxmips
parent58b9e416fd826452bbbfc57d0f92a269110230e9 (diff)
downloadupstream-f5fd4e33673be1b20b3d52fac0b471fb492ac9ec.tar.gz
upstream-f5fd4e33673be1b20b3d52fac0b471fb492ac9ec.tar.bz2
upstream-f5fd4e33673be1b20b3d52fac0b471fb492ac9ec.zip
add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12704 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips')
-rw-r--r--target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h b/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
index 76d42c2e3b..0dece372d1 100644
--- a/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
+++ b/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
@@ -86,5 +86,9 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) {
gpio_set_value(gpio, value);
}
-#endif
+static inline int gpio_is_valid(int number)
+{
+ return ((unsigned)number) < 8;
+}
+#endif