Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348713
b: refs/heads/master
c: 272cc9c
h: refs/heads/master
i:
  348711: c202c15
v: v3
  • Loading branch information
Axel Lin authored and Jonathan Cameron committed Dec 27, 2012
1 parent 5294b12 commit 6a0a69d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36ce0c1c3ab7ea54fa6c2b3a0803c7ab0adcefbf
refs/heads/master: 272cc9c8b5d0dffe9fb03e6c0ab3da2fde9c20e9
6 changes: 5 additions & 1 deletion trunk/drivers/iio/dac/ad5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ static int __devinit ad5380_probe(struct device *dev, struct regmap *regmap,
goto error_free_reg;
}

st->vref = regulator_get_voltage(st->vref_reg);
ret = regulator_get_voltage(st->vref_reg);
if (ret < 0)
goto error_disable_reg;

st->vref = ret;
} else {
st->vref = st->chip_info->int_vref;
ctrl |= AD5380_CTRL_INT_VREF_EN;
Expand Down

0 comments on commit 6a0a69d

Please sign in to comment.