diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-01-20 13:57:31 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-01-28 03:43:24 -0500 |
commit | 4332e0144fe44cfc9a9c851f0edcab92ead2adbd (patch) | |
tree | d1258212351cb7b640fafd46b7dfe4008514a876 /drivers/gpio/gpio-104-idi-48.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
gpio: 104-idi-48: Allow IRQ sharing
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>
Diffstat (limited to 'drivers/gpio/gpio-104-idi-48.c')
-rw-r--r-- | drivers/gpio/gpio-104-idi-48.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-104-idi-48.c b/drivers/gpio/gpio-104-idi-48.c index 52eed328ce99..285a075e1fd7 100644 --- a/drivers/gpio/gpio-104-idi-48.c +++ b/drivers/gpio/gpio-104-idi-48.c | |||
@@ -267,7 +267,8 @@ static int __init idi_48_probe(struct platform_device *pdev) | |||
267 | goto err_gpiochip_irqchip_add; | 267 | goto err_gpiochip_irqchip_add; |
268 | } | 268 | } |
269 | 269 | ||
270 | err = request_irq(irq, idi_48_irq_handler, 0, name, idi48gpio); | 270 | err = request_irq(irq, idi_48_irq_handler, IRQF_SHARED, name, |
271 | idi48gpio); | ||
271 | if (err) { | 272 | if (err) { |
272 | dev_err(dev, "IRQ handler registering failed (%d)\n", err); | 273 | dev_err(dev, "IRQ handler registering failed (%d)\n", err); |
273 | goto err_request_irq; | 274 | goto err_request_irq; |