[atheros] use generic cansleep wrappers for GPIO
authorGabor Juhos <juhosg@openwrt.org>
Thu, 11 Sep 2008 06:17:05 +0000 (06:17 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 11 Sep 2008 06:17:05 +0000 (06:17 +0000)
SVN-Revision: 12567

target/linux/atheros/files/include/asm-mips/mach-atheros/gpio.h

index db7347c221b25071c0b28ce980ac191621180221..d09e59d2b48c6d33d27b366cd448f7841d44eb1a 100644 (file)
@@ -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
-