diff options
author | 2013-02-06 11:28:51 +0000 | |
---|---|---|
committer | 2013-02-06 11:28:51 +0000 | |
commit | 44784cb32bc3d697e3ce90906ed9ef8a3ec2ca4b (patch) | |
tree | 7cc3febfbfdeab665328fc487efc2fa6fd86c4ba | |
parent | Merge remote-tracking branch 'regulator/fix/max8998' into tmp (diff) | |
parent | regulator: clear state each invocation of of_regulator_match (diff) | |
download | wireguard-linux-44784cb32bc3d697e3ce90906ed9ef8a3ec2ca4b.tar.xz wireguard-linux-44784cb32bc3d697e3ce90906ed9ef8a3ec2ca4b.zip |
Merge remote-tracking branch 'regulator/fix/of' into tmp
-rw-r--r-- | drivers/regulator/of_regulator.c | 6 |
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, if (!dev || !node) return -EINVAL; + for (i = 0; i < num_matches; i++) { + struct of_regulator_match *match = &matches[i]; + match->init_data = NULL; + match->of_node = NULL; + } + for_each_child_of_node(node, child) { name = of_get_property(child, "regulator-compatible", NULL); |