System may have more than one pmic and the interrupt
from them may be routed to the same place. Then the irq
should be set to be sharable to make sure irq will be
registered successfully.
Change-Id: I8f326387e20bb23c149820865890a194837f9774
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/495458
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
}
ret = request_threaded_irq(mchip->irq, NULL, max8973_thermal_irq,
- IRQF_ONESHOT, dev_name(mchip->dev), mchip);
+ IRQF_ONESHOT | IRQF_SHARED, dev_name(mchip->dev), mchip);
if (ret < 0) {
- dev_err(mchip->dev, "request irq %d failed: %dn",
+ dev_err(mchip->dev, "request irq %d failed: %d\n",
mchip->irq, ret);
goto fail;
}