diff options
author | Alexander Stein <alexander.stein@systec-electronic.com> | 2014-11-17 11:38:09 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-11-27 17:01:20 +0300 |
commit | 9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0 (patch) | |
tree | 90924198067f065c147967a020361412c78c9db5 /drivers/gpio | |
parent | 1c649f4c8649050947b67358467b839e950abd14 (diff) | |
download | linux-9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0.tar.xz |
gpio: mcp23s08: request a shared interrupt
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index 1ac7de85da8b..6589438dad57 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c @@ -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", |