aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-06 06:28:51 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-06 06:28:51 -0500
commit44784cb32bc3d697e3ce90906ed9ef8a3ec2ca4b (patch)
tree7cc3febfbfdeab665328fc487efc2fa6fd86c4ba
parent98380536ee1195dadee0ae5ec8b80e3eda8be15b (diff)
parenta2f95c363701deba2205f81929b40222ea6f4f80 (diff)
Merge remote-tracking branch 'regulator/fix/of' into tmp
-rw-r--r--drivers/regulator/of_regulator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index 6f684916fd79..66ca769287ab 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -120,6 +120,12 @@ int of_regulator_match(struct device *dev, struct device_node *node,
120 if (!dev || !node) 120 if (!dev || !node)
121 return -EINVAL; 121 return -EINVAL;
122 122
123 for (i = 0; i < num_matches; i++) {
124 struct of_regulator_match *match = &matches[i];
125 match->init_data = NULL;
126 match->of_node = NULL;
127 }
128
123 for_each_child_of_node(node, child) { 129 for_each_child_of_node(node, child) {
124 name = of_get_property(child, 130 name = of_get_property(child,
125 "regulator-compatible", NULL); 131 "regulator-compatible", NULL);