]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Defer lookup of supply to regulator_get
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Wed, 25 Mar 2015 01:56:05 +0000 (18:56 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2015 20:19:44 +0000 (21:19 +0100)
commitdb86eec9497b53ebe58539ec096be5c44f977ba2
tree4bc6989348daaf4fc2c92c4f1c9976796975f2f7
parenta7fa6c1bb856a8f89739f01c21731f200036b2c7
regulator: Defer lookup of supply to regulator_get

Instead of resolving regulator supplies during registration move this to
the time of a consumer retrieving a handle. The benefit is that it's
possible for one driver to register regulators with internal
dependencies out of order.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/driver.h