Commit 8ad365c9 authored by Dmitry Lavnikevich's avatar Dmitry Lavnikevich Committed by Mark Brown

regulator: da9063: Do not transform local IRQ to virtual

Call platform_get_irq_byname() already returns VIRQ instead of local
IRQ. Passing this value to regmap_irq_get_virq() causes error which
results in IRQ registration failure. This patch fixes such behaviour.
Signed-off-by: default avatarDmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f114040e
...@@ -867,17 +867,14 @@ static int da9063_regulator_probe(struct platform_device *pdev) ...@@ -867,17 +867,14 @@ static int da9063_regulator_probe(struct platform_device *pdev)
return irq; return irq;
} }
regulators->irq_ldo_lim = regmap_irq_get_virq(da9063->regmap_irq, irq); ret = request_threaded_irq(irq,
if (regulators->irq_ldo_lim >= 0) { NULL, da9063_ldo_lim_event,
ret = request_threaded_irq(regulators->irq_ldo_lim, IRQF_TRIGGER_LOW | IRQF_ONESHOT,
NULL, da9063_ldo_lim_event, "LDO_LIM", regulators);
IRQF_TRIGGER_LOW | IRQF_ONESHOT, if (ret) {
"LDO_LIM", regulators); dev_err(&pdev->dev,
if (ret) { "Failed to request LDO_LIM IRQ.\n");
dev_err(&pdev->dev, regulators->irq_ldo_lim = -ENXIO;
"Failed to request LDO_LIM IRQ.\n");
regulators->irq_ldo_lim = -ENXIO;
}
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment