Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68689dbf authored by Semen Protsenko's avatar Semen Protsenko Committed by Linus Walleij
Browse files

gpio: max732x: Add IRQF_SHARED to irq flags



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: default avatarSemen Protsenko <semen.protsenko@globallogic.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c61f819a
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -516,11 +516,9 @@ 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,
		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",