]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpio/gpiolib.c
gpio_free might sleep, generic part
[linux-2.6-omap-h63xx.git] / drivers / gpio / gpiolib.c
index 8d2940517c99221c33e3bf200ac53a82214cebee..317004fd94fbb6908e40e8f0b7482a887845ce13 100644 (file)
@@ -792,6 +792,8 @@ void gpio_free(unsigned gpio)
        unsigned long           flags;
        struct gpio_desc        *desc;
 
+       might_sleep();
+
        if (!gpio_is_valid(gpio)) {
                WARN_ON(extra_checks);
                return;