Files
linux/drivers/iio/adc
Guenter Roeck 45a77a9faa iio: max1363: Use devm_regulator_get_optional for optional regulator
commit 55b40d3731 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-22 13:34:51 -08:00
..
2013-08-03 18:40:39 +01:00
2013-08-03 18:40:41 +01:00