diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-25 16:27:54 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-09-25 16:27:54 +0000 |
commit | 9f4a7ba694b4b01a362836adcbcbdcfca9e8a3c3 (patch) | |
tree | b34d955ee59a5fe4d268b5d3b10fbb0251223b15 /target/linux/ifxmips | |
parent | d20c210d75d4423fc8de2dc99bc3bb1de9a3b77e (diff) |
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.h | 6 |
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 76d42c2e3..0dece372d 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 |