]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Handle full constraints systems when resolving supplies
authorMark Brown <broonie@kernel.org>
Tue, 14 Jul 2015 10:17:26 +0000 (11:17 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 15 Jul 2015 11:19:44 +0000 (12:19 +0100)
commitdfb0ffd436cd1d6faca98bb1d9f92d24751fcf14
tree30ca2a8ed996e09d588d3ca8ca0a55a9a1f3e610
parent0c9e0229f3c4e023815b9350b2095fd8ad5809e3
regulator: core: Handle full constraints systems when resolving supplies

When resolving device supplies if we fail to look up the regulator we
substitute in the dummy supply instead if the system has fully specified
constraints. When resolving supplies for regulators we do not have the
equivalent code and instead just directly use the regulator_dev_lookup()
result causing spurious failures.

This does not affect DT systems since we are able to detect missing
mappings directly as part of regulator_dev_lookup() and so have appropriate
handling in the DT specific code.

Reported-by: Christian Hartmann <cornogle@googlemail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c