summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/exynos_adc.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-01-27 18:10:00 +0000
committerJonathan Cameron <jic23@kernel.org>2014-02-08 11:46:00 +0000
commit55b40d37311807a6bb2acdae0df904f54a0da3ae (patch)
treeb273b91937b2ecede65e07dc9ceae926c21a3c4e /drivers/iio/adc/exynos_adc.c
parent5585215b6daabf898b4d40f33d1b8c1d41e85018 (diff)
iio: max1363: Use devm_regulator_get_optional for optional regulator
In kernel version 3.13, devm_regulator_get() may return no error if a regulator is undeclared. regulator_get_voltage() will return -EINVAL if this happens. This causes the driver to fail loading if the vref regulator is not declared. Since vref is optional, call devm_regulator_get_optional instead. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: Stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/exynos_adc.c')
0 files changed, 0 insertions, 0 deletions