regulator: max77686: Initialise rmatch.of_node to NULL.
authorYadwinder Singh Brar <yadi.brar01@gmail.com>
Fri, 6 Jul 2012 09:20:08 +0000 (14:50 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Jul 2012 18:17:29 +0000 (19:17 +0100)
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>
drivers/regulator/max77686.c

index fc695eb3886e036fa5625583c2028e61b689e786..c564af6f05a360c92f18be7cad558b1b73723c2f 100644 (file)
@@ -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;
        }