gpio: mxs: Allow for recursive enable_irq_wake() call
[pandora-kernel.git] / drivers / gpio / gpio-mxs.c
index 292b504..0f8114d 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/basic_mmio_gpio.h>
+#include <linux/module.h>
 #include <mach/mxs.h>
 
 #define MXS_SET                0x4
@@ -166,7 +167,8 @@ static void __init mxs_gpio_init_gc(struct mxs_gpio_port *port)
        ct->regs.ack = PINCTRL_IRQSTAT(port->id) + MXS_CLR;
        ct->regs.mask = PINCTRL_IRQEN(port->id);
 
-       irq_setup_generic_chip(gc, IRQ_MSK(32), 0, IRQ_NOREQUEST, 0);
+       irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_NESTED_LOCK,
+                              IRQ_NOREQUEST, 0);
 }
 
 static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset)