Commit f17083c3 authored by Adam Thomson's avatar Adam Thomson Committed by Mark Brown
Browse files

regulator: da9055: Remove use of regmap_irq_get_virq()

parent 38dbfb59
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -576,7 +576,9 @@ static int da9055_regulator_probe(struct platform_device *pdev)
	/* Only LDO 5 and 6 has got the over current interrupt */
	/* Only LDO 5 and 6 has got the over current interrupt */
	if (pdev->id == DA9055_ID_LDO5 || pdev->id ==  DA9055_ID_LDO6) {
	if (pdev->id == DA9055_ID_LDO5 || pdev->id ==  DA9055_ID_LDO6) {
		irq = platform_get_irq_byname(pdev, "REGULATOR");
		irq = platform_get_irq_byname(pdev, "REGULATOR");
		irq = regmap_irq_get_virq(da9055->irq_data, irq);
		if (irq < 0)
			return irq;

		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
						da9055_ldo5_6_oc_irq,
						da9055_ldo5_6_oc_irq,
						IRQF_TRIGGER_HIGH |
						IRQF_TRIGGER_HIGH |