summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>2014-02-06 18:03:21 +0000
committerMark Brown <broonie@linaro.org>2014-02-07 16:27:37 +0000
commitf17083c3affccfe955b0a419056784096c18fea8 (patch)
tree9ab9d783b0d8083f3427d93ec41e51eb07b4dc40
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadtalos-op-linux-f17083c3affccfe955b0a419056784096c18fea8.tar.gz
talos-op-linux-f17083c3affccfe955b0a419056784096c18fea8.zip
regulator: da9055: Remove use of regmap_irq_get_virq()
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/regulator/da9055-regulator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c
index 7f340206d329..b14ebdad5dd2 100644
--- a/drivers/regulator/da9055-regulator.c
+++ b/drivers/regulator/da9055-regulator.c
@@ -576,7 +576,9 @@ static int da9055_regulator_probe(struct platform_device *pdev)
/* Only LDO 5 and 6 has got the over current interrupt */
if (pdev->id == DA9055_ID_LDO5 || pdev->id == DA9055_ID_LDO6) {
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,
da9055_ldo5_6_oc_irq,
IRQF_TRIGGER_HIGH |
OpenPOWER on IntegriCloud