Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323313
b: refs/heads/master
c: 52b84da
h: refs/heads/master
i:
  323311: 4a521fa
v: v3
  • Loading branch information
AnilKumar Ch authored and Mark Brown committed Sep 8, 2012
1 parent b76fa93 commit 66c5949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b5a24a01df12fbfa3e702ad7efae27bcb852e33
refs/heads/master: 52b84dac436a681fa51dad2b9e57b6ea50309cbd
4 changes: 3 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3202,8 +3202,10 @@ regulator_register(const struct regulator_desc *regulator_desc,
rdev->desc = regulator_desc;
if (config->regmap)
rdev->regmap = config->regmap;
else
else if (dev_get_regmap(dev, NULL))
rdev->regmap = dev_get_regmap(dev, NULL);
else if (dev->parent)
rdev->regmap = dev_get_regmap(dev->parent, NULL);
INIT_LIST_HEAD(&rdev->consumer_list);
INIT_LIST_HEAD(&rdev->list);
BLOCKING_INIT_NOTIFIER_HEAD(&rdev->notifier);
Expand Down

0 comments on commit 66c5949

Please sign in to comment.