projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'staging-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
iio
/
adc
/
ad7266.c
diff --git
a/drivers/iio/adc/ad7266.c
b/drivers/iio/adc/ad7266.c
index
4a5f639
..
bbad9b9
100644
(file)
--- a/
drivers/iio/adc/ad7266.c
+++ b/
drivers/iio/adc/ad7266.c
@@
-411,7
+411,11
@@
static int 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;