summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2014-05-23 11:27:27 +0530
committerLinus Walleij <linus.walleij@linaro.org>2014-05-28 09:21:04 +0200
commit5795cf35030bfa180a6f5c948681821f7019fc18 (patch)
tree35360951b630fed2d45b2d55808e5e93522e1e21 /drivers/gpio
parente6b698f69adce0119b5f5ed00789d1a0e0af975f (diff)
downloadop-kernel-dev-5795cf35030bfa180a6f5c948681821f7019fc18.zip
op-kernel-dev-5795cf35030bfa180a6f5c948681821f7019fc18.tar.gz
gpio: pcf857x: Add IRQF_SHARED when request irq
It's quite possible that multiple pcf857x can be hooked up to the same interrupt line with the processor. So add IRQF_SHARED in request irq.. Signed-off-by: George Cherian <george.cherian@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-pcf857x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c
index 5acffed..27b4675 100644
--- a/drivers/gpio/gpio-pcf857x.c
+++ b/drivers/gpio/gpio-pcf857x.c
@@ -262,7 +262,7 @@ static int pcf857x_irq_domain_init(struct pcf857x *gpio,
/* enable real irq */
status = devm_request_threaded_irq(&client->dev, client->irq,
NULL, pcf857x_irq, IRQF_ONESHOT |
- IRQF_TRIGGER_FALLING,
+ IRQF_TRIGGER_FALLING | IRQF_SHARED,
dev_name(&client->dev), gpio);
if (status)
OpenPOWER on IntegriCloud