regulator: core: Don't allow to get regulator until all couples resolved
authorDmitry Osipenko <digetx@gmail.com>
Fri, 5 Oct 2018 15:36:31 +0000 (18:36 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Nov 2018 12:41:10 +0000 (12:41 +0000)
commit79d6f049f4f05f5cb6e1647a9a253dad14bfabbe
tree65f5c35a2604a0492508b57c35ba56220f4745b6
parentf9503385b1877ac34514cd5ea7683eee61c4bec3
regulator: core: Don't allow to get regulator until all couples resolved

Don't allow to get regulator until all of its couples resolved because
consumer will get EPERM and coupling shall be transparent for the drivers.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c