gpio: 104-idi-48: Allow IRQ sharing
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 20 Jan 2016 18:57:31 +0000 (13:57 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Jan 2016 08:43:24 +0000 (09:43 +0100)
The ACCES 104-IDI-48 can differentiate between its own and other
devices' interrupt requests. Therefore, IRQ sharing is possible and
should be permitted.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-104-idi-48.c

index 52eed32..285a075 100644 (file)
@@ -267,7 +267,8 @@ static int __init idi_48_probe(struct platform_device *pdev)
                goto err_gpiochip_irqchip_add;
        }
 
-       err = request_irq(irq, idi_48_irq_handler, 0, name, idi48gpio);
+       err = request_irq(irq, idi_48_irq_handler, IRQF_SHARED, name,
+               idi48gpio);
        if (err) {
                dev_err(dev, "IRQ handler registering failed (%d)\n", err);
                goto err_request_irq;