]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/mach-rdc321x/gpio.h
x86, debug: gpio_free might sleep
[linux-2.6-omap-h63xx.git] / include / asm-x86 / mach-rdc321x / gpio.h
index acce0b7d397bb2465ee89beb6e8a7d817bccbc7a..3639ece6485aa3aba40ef8988db029c7056151ff 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _RDC321X_GPIO_H
 #define _RDC321X_GPIO_H
 
+#include <linux/kernel.h>
+
 extern int rdc_gpio_get_value(unsigned gpio);
 extern void rdc_gpio_set_value(unsigned gpio, int value);
 extern int rdc_gpio_direction_input(unsigned gpio);
@@ -18,6 +20,7 @@ static inline int gpio_request(unsigned gpio, const char *label)
 
 static inline void gpio_free(unsigned gpio)
 {
+       might_sleep();
        rdc_gpio_free(gpio);
 }