pinctrl: st: Add irq_disable hook to st_gpio_irqchip
authorPatrice CHOTARD <[email protected]>
Mon, 5 Jan 2015 10:04:14 +0000 (11:04 +0100)
committerLinus Walleij <[email protected]>
Wed, 7 Jan 2015 09:44:39 +0000 (10:44 +0100)
Currently disable_irq() doesn't work for pinctrl-st driver, due to
missing irq_disable hook in the driver.
disable_irq() is required only for level-triggered interrupts, which
is not the case normally.

Signed-off-by: Pankaj Dev <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-st.c

index 87570e68deed5a16f7b822808790a2d9ca49df0f..9e5ec00084bb1dcc2aad395af7c37d2bf0e3044a 100644 (file)
@@ -1445,6 +1445,7 @@ static struct gpio_chip st_gpio_template = {
 
 static struct irq_chip st_gpio_irqchip = {
        .name           = "GPIO",
+       .irq_disable    = st_gpio_irq_mask,
        .irq_mask       = st_gpio_irq_mask,
        .irq_unmask     = st_gpio_irq_unmask,
        .irq_set_type   = st_gpio_irq_set_type,