diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-09-11 06:17:05 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-09-11 06:17:05 +0000 |
commit | 8b0e8fb5323122396476a71fa8520ad81b45b1b0 (patch) | |
tree | bf4bd427c81231f3c33c9f5895076f59fe2af4f2 /target/linux | |
parent | b23e70142db44f5a93b5da073c5df05b756c6fb4 (diff) | |
download | upstream-8b0e8fb5323122396476a71fa8520ad81b45b1b0.tar.gz upstream-8b0e8fb5323122396476a71fa8520ad81b45b1b0.tar.bz2 upstream-8b0e8fb5323122396476a71fa8520ad81b45b1b0.zip |
[atheros] use generic cansleep wrappers for GPIO
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12567 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h b/target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h index db7347c221..d09e59d2b4 100644 --- a/target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h +++ b/target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h @@ -113,24 +113,6 @@ static inline int irq_to_gpio(unsigned irq) { return (irq - (AR531X_GPIO_IRQ(0))); } -/* #include <asm-generic/gpio.h> */ /* cansleep wrappers */ -/* platforms that don't directly support access to GPIOs through I2C, SPI, - * or other blocking infrastructure can use these wrappers. - */ - -static inline int gpio_cansleep(unsigned gpio) { - return 0; -} - -static inline int gpio_get_value_cansleep(unsigned gpio) { - might_sleep(); - return gpio_get_value(gpio); -} - -static inline void gpio_set_value_cansleep(unsigned gpio, int value) { - might_sleep(); - gpio_set_value(gpio, value); -} +#include <asm-generic/gpio.h> /* cansleep wrappers */ #endif - |