pinctrl: intel: set default handler to be handle_bad_irq()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 25 Nov 2016 11:31:16 +0000 (13:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Dec 2016 14:26:59 +0000 (15:26 +0100)
We switch the default handler to be handle_bad_irq() instead of
handle_simple_irq() (which was not correct anyway).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c
drivers/pinctrl/intel/pinctrl-intel.c

index 71bbeb9321bad587504bf5ca4f4c889019b4b9f4..37300634b7d2c853a05f5dcecce6b9d46d187b59 100644 (file)
@@ -1703,7 +1703,7 @@ static int byt_gpio_probe(struct byt_gpio *vg)
        if (irq_rc && irq_rc->start) {
                byt_gpio_irq_init_hw(vg);
                ret = gpiochip_irqchip_add(gc, &byt_irqchip, 0,
-                                          handle_simple_irq, IRQ_TYPE_NONE);
+                                          handle_bad_irq, IRQ_TYPE_NONE);
                if (ret) {
                        dev_err(&vg->pdev->dev, "failed to add irqchip\n");
                        goto fail;
index 01443762e57055b88ea9f1accb0cf6e10eda2978..1e139672f1af9da0fa7ff4af1a919395e2ea6957 100644 (file)
@@ -911,7 +911,7 @@ static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq)
        }
 
        ret = gpiochip_irqchip_add(&pctrl->chip, &intel_gpio_irqchip, 0,
-                                  handle_simple_irq, IRQ_TYPE_NONE);
+                                  handle_bad_irq, IRQ_TYPE_NONE);
        if (ret) {
                dev_err(pctrl->dev, "failed to add irqchip\n");
                goto fail;