Commit 6dd599f8af0166805951f4421a78ba716d78321a

Authored by David Jander
Committed by Grant Likely
1 parent 17e8b42c17

gpio/pca953x: Fix warning of enabled interrupts in handler

When using nested threaded irqs, use handle_nested_irq(). This function
does not call the chip handler, so no handler is set.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

drivers/gpio/gpio-pca953x.c
... ... @@ -437,7 +437,7 @@
437 437  
438 438 do {
439 439 level = __ffs(pending);
440   - generic_handle_irq(level + chip->irq_base);
  440 + handle_nested_irq(level + chip->irq_base);
441 441  
442 442 pending &= ~(1 << level);
443 443 } while (pending);
... ... @@ -485,8 +485,8 @@
485 485  
486 486 irq_clear_status_flags(irq, IRQ_NOREQUEST);
487 487 irq_set_chip_data(irq, chip);
488   - irq_set_chip_and_handler(irq, &pca953x_irq_chip,
489   - handle_simple_irq);
  488 + irq_set_chip(irq, &pca953x_irq_chip);
  489 + irq_set_nested_thread(irq, true);
490 490 #ifdef CONFIG_ARM
491 491 set_irq_flags(irq, IRQF_VALID);
492 492 #else