summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2014-11-17 09:38:09 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-11-27 15:01:20 +0100
commit9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0 (patch)
tree90924198067f065c147967a020361412c78c9db5
parent1c649f4c8649050947b67358467b839e950abd14 (diff)
downloadtalos-op-linux-9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0.tar.gz
talos-op-linux-9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0.zip
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>
-rw-r--r--drivers/gpio/gpio-mcp23s08.c3
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",
OpenPOWER on IntegriCloud