Skip to contentSkip to conversation

gpio: merrifield: set default handler to be handle_bad_irq()

PATCH In review Andy Shevchenko 2 participants 2 messages Oct 10, 2016 – Oct 20, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: merrifield: set default handler to be handle_bad_irq()

We switch the default handler to be handle_bad_irq() instead of handle_simple_irq() (which was not correct anyway).

---
 drivers/gpio/gpio-merrifield.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-merrifield.c +1 -1
index 45b5127..82cdcdc 100644
@@ -411,7 +411,7 @@ static int mrfld_gpio_probe(struct pci_dev *pdev, const struct pci_device_id *id
 	}
 
 	retval = gpiochip_irqchip_add(&priv->chip, &mrfld_irqchip, irq_base,
-				      handle_simple_irq, IRQ_TYPE_NONE);
+				      handle_bad_irq, IRQ_TYPE_NONE);
 	if (retval) {
 		dev_err(&pdev->dev, "could not connect irqchip to gpiochip\n");
 		return retval;
Signature · 1 line
2.9.3
#1 lore raw
Quoted 4 lines · Andy Shevchenko

We switch the default handler to be handle_bad_irq() instead of handle_simple_irq() (which was not correct anyway).

Yeah the right handler is set up in .set_type(), nice.

Patch applied.

Yours,
Linus Walleij