mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 04:44:03 +00:00
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]>