aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 4acf8b2e9226..6fdae789ccc9 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -437,7 +437,7 @@ static int gpiochip_irq_map(struct irq_domain *d, unsigned int irq,
437 irq_set_lockdep_class(irq, &gpiochip_irq_lock_class); 437 irq_set_lockdep_class(irq, &gpiochip_irq_lock_class);
438 irq_set_chip_and_handler(irq, chip->irqchip, chip->irq_handler); 438 irq_set_chip_and_handler(irq, chip->irqchip, chip->irq_handler);
439 /* Chips that can sleep need nested thread handlers */ 439 /* Chips that can sleep need nested thread handlers */
440 if (chip->can_sleep) 440 if (chip->can_sleep && !chip->irq_not_threaded)
441 irq_set_nested_thread(irq, 1); 441 irq_set_nested_thread(irq, 1);
442#ifdef CONFIG_ARM 442#ifdef CONFIG_ARM
443 set_irq_flags(irq, IRQF_VALID); 443 set_irq_flags(irq, IRQF_VALID);