dect
/
linux-2.6
Archived
13
0
Fork 0

Merge remote-tracking branch 'regulator/fix/of' into tmp

This commit is contained in:
Mark Brown 2013-02-06 11:28:51 +00:00
commit 44784cb32b
1 changed files with 6 additions and 0 deletions

View File

@ -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);