Skip to content

Commit

Permalink
Merge remote-tracking branches 'regulator/fix/da9055' and 'regulator/…
Browse files Browse the repository at this point in the history
…fix/max14577' into regulator-linus
  • Loading branch information
Mark Brown committed Feb 12, 2014
3 parents b28a960 + f17083c + 667a6b7 commit 5c306c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion drivers/regulator/da9055-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
5 changes: 3 additions & 2 deletions drivers/regulator/max14577.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev)
MAX14577_REG_MAX);
if (ret < 0) {
dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret);
return ret;
}

return 0;
of_node_put(np);

return ret;
}

static inline struct regulator_init_data *match_init_data(int index)
Expand Down

0 comments on commit 5c306c8

Please sign in to comment.