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: Semen Protsenko <semen.protsenko@globallogic.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
c61f819a45
commit
68689dbf35
|
@ -516,12 +516,10 @@ static int max732x_irq_setup(struct max732x_chip *chip,
|
||||||
chip->irq_features = has_irq;
|
chip->irq_features = has_irq;
|
||||||
mutex_init(&chip->irq_lock);
|
mutex_init(&chip->irq_lock);
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(&client->dev,
|
ret = devm_request_threaded_irq(&client->dev, client->irq,
|
||||||
client->irq,
|
NULL, max732x_irq_handler, IRQF_ONESHOT |
|
||||||
NULL,
|
IRQF_TRIGGER_FALLING | IRQF_SHARED,
|
||||||
max732x_irq_handler,
|
dev_name(&client->dev), chip);
|
||||||
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
|
||||||
dev_name(&client->dev), chip);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&client->dev, "failed to request irq %d\n",
|
dev_err(&client->dev, "failed to request irq %d\n",
|
||||||
client->irq);
|
client->irq);
|
||||||
|
|
Loading…
Reference in New Issue