gpio: max732x: Add IRQF_SHARED to irq flags
authorSemen Protsenko <semen.protsenko@globallogic.com>
Tue, 21 Apr 2015 13:19:04 +0000 (16:19 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 May 2015 13:05:54 +0000 (15:05 +0200)
It's possible that multiple MAX732X can be hooked up to the same
interrupt line with the processor. So add IRQF_SHARED in requesting irq.

Signed-off-by: Semen Protsenko <semen.protsenko@globallogic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max732x.c

index 1885e5c3569e8f8dfbb1c4efdd2fe756759c0985..857907aecec35f48245f5972bb814645b8f7c9a2 100644 (file)
@@ -516,12 +516,10 @@ static int max732x_irq_setup(struct max732x_chip *chip,
                chip->irq_features = has_irq;
                mutex_init(&chip->irq_lock);
 
-               ret = devm_request_threaded_irq(&client->dev,
-                                       client->irq,
-                                       NULL,
-                                       max732x_irq_handler,
-                                       IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
-                                       dev_name(&client->dev), chip);
+               ret = devm_request_threaded_irq(&client->dev, client->irq,
+                               NULL, max732x_irq_handler, IRQF_ONESHOT |
+                               IRQF_TRIGGER_FALLING | IRQF_SHARED,
+                               dev_name(&client->dev), chip);
                if (ret) {
                        dev_err(&client->dev, "failed to request irq %d\n",
                                client->irq);