pinctrl: st: Add irq_disable hook to st_gpio_irqchip
authorPatrice CHOTARD <patrice.chotard@st.com>
Mon, 5 Jan 2015 10:04:14 +0000 (11:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
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 <pankaj.dev@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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,