Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348712
b: refs/heads/master
c: 36ce0c1
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Jonathan Cameron committed Dec 27, 2012
1 parent c202c15 commit 5294b12
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: 9541cc39a6381b76dac30c8e05078eb0a543f113
refs/heads/master: 36ce0c1c3ab7ea54fa6c2b3a0803c7ab0adcefbf
6 changes: 5 additions & 1 deletion trunk/drivers/iio/adc/ad7266.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ static int __devinit ad7266_probe(struct spi_device *spi)
if (ret)
goto error_put_reg;

st->vref_uv = regulator_get_voltage(st->reg);
ret = regulator_get_voltage(st->reg);
if (ret < 0)
goto error_disable_reg;

st->vref_uv = ret;
} else {
/* Use internal reference */
st->vref_uv = 2500000;
Expand Down

0 comments on commit 5294b12

Please sign in to comment.