gpio: mcp23s08: request a shared interrupt
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 17 Nov 2014 08:38:09 +0000 (09:38 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Nov 2014 14:01:20 +0000 (15:01 +0100)
Request a shared interrupt when requesting a mcp23s08 GPIO interrupt.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c

index 1ac7de85da8bcf6567a5779601fae1ab07e8724d..6589438dad57887f7d3ed137e6179900ffbfd01f 100644 (file)
@@ -485,7 +485,8 @@ static int mcp23s08_irq_setup(struct mcp23s08 *mcp)
                return -ENODEV;
 
        err = devm_request_threaded_irq(chip->dev, mcp->irq, NULL, mcp23s08_irq,
-                                       IRQF_TRIGGER_LOW | IRQF_ONESHOT,
+                                       IRQF_TRIGGER_LOW | IRQF_ONESHOT |
+                                       IRQF_SHARED,
                                        dev_name(chip->dev), mcp);
        if (err != 0) {
                dev_err(chip->dev, "unable to request IRQ#%d: %d\n",