Skip to content

Commit

Permalink
regulator: max77686: Initialise rmatch.of_node to NULL.
Browse files Browse the repository at this point in the history
Now of_regulator_match() returns without finding the match if match->of_node
is not NULL.

Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Yadwinder Singh Brar authored and Mark Brown committed Jul 6, 2012
1 parent 19228a6 commit d1ef065
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ static int max77686_pmic_dt_parse_pdata(struct max77686_dev *iodev,
for (i = 0; i < pdata->num_regulators; i++) {
rmatch.name = regulators[i].name;
rmatch.init_data = NULL;
rmatch.of_node = NULL;
of_regulator_match(iodev->dev, regulators_np, &rmatch, 1);
rdata[i].initdata = rmatch.init_data;
}
Expand Down

0 comments on commit d1ef065

Please sign in to comment.