aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max77686.c
diff options
context:
space:
mode:
authorYadwinder Singh Brar <yadi.brar01@gmail.com>2012-07-06 05:20:08 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-06 14:17:29 -0400
commitd1ef065d43476fd0e245cad2ef1d226e7cb6324b (patch)
tree227503d3d42dfa27ba1588b0715dff534ff3a1b3 /drivers/regulator/max77686.c
parent19228a6a59250d414824ae07e06ad057a404ea3e (diff)
regulator: max77686: Initialise rmatch.of_node to NULL.
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>
Diffstat (limited to 'drivers/regulator/max77686.c')
-rw-r--r--drivers/regulator/max77686.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index fc695eb3886e..c564af6f05a3 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -262,6 +262,7 @@ static int max77686_pmic_dt_parse_pdata(struct max77686_dev *iodev,
262 for (i = 0; i < pdata->num_regulators; i++) { 262 for (i = 0; i < pdata->num_regulators; i++) {
263 rmatch.name = regulators[i].name; 263 rmatch.name = regulators[i].name;
264 rmatch.init_data = NULL; 264 rmatch.init_data = NULL;
265 rmatch.of_node = NULL;
265 of_regulator_match(iodev->dev, regulators_np, &rmatch, 1); 266 of_regulator_match(iodev->dev, regulators_np, &rmatch, 1);
266 rdata[i].initdata = rmatch.init_data; 267 rdata[i].initdata = rmatch.init_data;
267 } 268 }