Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350458
b: refs/heads/master
c: 1f91b6f
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Feb 8, 2013
1 parent 089e2b0 commit 06f0fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 197bf85630a6f4ed5d533d5770f8daa92f4c4041
refs/heads/master: 1f91b6f6c747d3c584a5f37f68f5417bd328d745
4 changes: 1 addition & 3 deletions trunk/drivers/regulator/s5m8767.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,7 @@ static int s5m8767_pmic_dt_parse_pdata(struct sec_pmic_dev *iodev,
}

/* count the number of regulators to be supported in pmic */
pdata->num_regulators = 0;
for_each_child_of_node(regulators_np, reg_np)
pdata->num_regulators++;
pdata->num_regulators = of_get_child_count(regulators_np);

rdata = devm_kzalloc(iodev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
Expand Down

0 comments on commit 06f0fec

Please sign in to comment.