Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348718
b: refs/heads/master
c: 13e57ee
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Jonathan Cameron committed Dec 27, 2012
1 parent f15b3e4 commit b035852
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: 359570ad3fcfcc3a3031b3a5e01bfb616233eca0
refs/heads/master: 13e57ee2056221296f1926d49d00edd224058bea
6 changes: 5 additions & 1 deletion trunk/drivers/iio/dac/ad5446.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ static int __devinit ad5446_probe(struct device *dev, const char *name,
if (ret)
goto error_put_reg;

voltage_uv = regulator_get_voltage(reg);
ret = regulator_get_voltage(reg);
if (ret < 0)
goto error_disable_reg;

voltage_uv = ret;
}

indio_dev = iio_device_alloc(sizeof(*st));
Expand Down

0 comments on commit b035852

Please sign in to comment.