summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorJames Ban <james.ban.opensource@diasemi.com>2015-01-16 12:13:27 +0900
committerMark Brown <broonie@kernel.org>2015-01-16 11:47:59 +0000
commit076c3b8e03e2737659a89660bb8e54e13587d974 (patch)
tree36467ff5a8bd0ef4a4a381e7e4f43d2912ef9c6f /drivers/regulator
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
regulator: da9211: fix unmatched of_node
This is a patch for fixing unmatched of_node. Signed-off-by: James Ban <james.ban.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/da9211-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index c78d2106d6cb..8e6957c63a69 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -276,7 +276,7 @@ static struct da9211_pdata *da9211_parse_regulators_dt(
continue;
pdata->init_data[n] = da9211_matches[i].init_data;
-
+ pdata->reg_node[n] = da9211_matches[i].of_node;
n++;
}
@@ -364,7 +364,7 @@ static int da9211_regulator_init(struct da9211 *chip)
config.dev = chip->dev;
config.driver_data = chip;
config.regmap = chip->regmap;
- config.of_node = chip->dev->of_node;
+ config.of_node = chip->pdata->reg_node[i];
chip->rdev[i] = devm_regulator_register(chip->dev,
&da9211_regulators[i], &config);