regulator: of: Skip disabled regulator nodes
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 12 May 2015 21:42:07 +0000 (14:42 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 13 May 2015 11:05:57 +0000 (12:05 +0100)
commit130daa3f3570890d9082a06b8c36951a9ef630b6
treec517265adfbaa49e894fb015e0808f9338606559
parentb787f68c36d49bb1d9236f403813641efa74a031
regulator: of: Skip disabled regulator nodes

If a regulator is listed in devicetree, but the node is marked as
"disabled" we should skip parsing the regulator init data and
deny consumers from interacting with the regulator. This
simplifies devicetree maintenance where we can have one dtsi file
with all regulators supported by a PMIC and then select what
regulators are used depending on the board configuration.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/of_regulator.c