]> git.karo-electronics.de Git - linux-beck.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)
commit6261b06de565baafa590e58a531a1a5522cea0b6
tree4bc6989348daaf4fc2c92c4f1c9976796975f2f7
parent5c9e719691eab8c5de8b1b68fc3da9f7c4470c38
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