Files
linux/drivers/iio/adc
Guenter Roeck 55b40d3731 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 <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
2014-02-08 11:46:00 +00:00
..
2013-08-03 18:40:39 +01:00
2013-08-03 18:40:41 +01:00
2013-12-02 16:39:07 -08:00
2013-12-19 15:10:49 +01:00