summaryrefslogtreecommitdiff
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-03-28 20:42:01 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-03-28 20:42:01 +0100
commitc3626fdea044cc97bfc035ebb048f7619acb6736 (patch)
tree4616758a56f3b3cef5303e511d2087d2e5eadfec /include/linux/gpio
parent2ddf6cd67cc561e40454d60126a8a7cb32f3328f (diff)
downloadlinux-next-c3626fdea044cc97bfc035ebb048f7619acb6736.tar.gz
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 {
*/
struct irq_chip *irqchip;
struct irq_domain *irqdomain;
+ unsigned int irq_base;
irq_flow_handler_t irq_handler;
unsigned int irq_default_type;
#endif