aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-03-28 15:42:01 -0400
committerLinus Walleij <linus.walleij@linaro.org>2014-03-28 15:42:01 -0400
commitc3626fdea044cc97bfc035ebb048f7619acb6736 (patch)
tree4616758a56f3b3cef5303e511d2087d2e5eadfec /include/linux/gpio
parent2ddf6cd67cc561e40454d60126a8a7cb32f3328f (diff)
gpio: unmap gpio irqs properly
When using the irqchip helper inside the gpiolib, make sure the IRQs are unmapped/disposed before the irqdomain is removed as part of removing the gpiochip. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index c1c5c2368fc8..1827b43966d9 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -107,6 +107,7 @@ struct gpio_chip {
107 */ 107 */
108 struct irq_chip *irqchip; 108 struct irq_chip *irqchip;
109 struct irq_domain *irqdomain; 109 struct irq_domain *irqdomain;
110 unsigned int irq_base;
110 irq_flow_handler_t irq_handler; 111 irq_flow_handler_t irq_handler;
111 unsigned int irq_default_type; 112 unsigned int irq_default_type;
112#endif 113#endif