]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Fix the init of DT defined fixed regulators
authorAlban Bedel <alban.bedel@avionic-design.de>
Tue, 20 May 2014 10:12:16 +0000 (12:12 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 1 Jun 2014 18:19:43 +0000 (19:19 +0100)
commit93f73d5b178f0db35d15c20113604461b3502341
tree2228e893dd2981564e72485e236a5dbae459ca1e
parent15150fa7fb5b432a144f4229210dc722f3b0b6eb
regulator: core: Fix the init of DT defined fixed regulators

When a regulator is defined using DT and it has a single voltage the
regulator init always tries to apply this voltage. However it fails if
the regulator isn't settable because it is using an internal low level
function. To overcome this we now first query the regulator and only
set it if needed.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c