aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-09-11 06:17:05 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-09-11 06:17:05 +0000
commit10eaf08da5e5eb66444448e60932fb871ea0a365 (patch)
tree58d7b2779456073f30983497901d964138c42087
parent74321caaf8d85632128b0575f6088fd6f87a0ccf (diff)
downloadupstream-10eaf08da5e5eb66444448e60932fb871ea0a365.tar.gz
upstream-10eaf08da5e5eb66444448e60932fb871ea0a365.tar.bz2
upstream-10eaf08da5e5eb66444448e60932fb871ea0a365.zip
use generic cansleep wrappers for GPIO
SVN-Revision: 12567
-rw-r--r--target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h20
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
-