Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188977
b: refs/heads/master
c: 67e46f3
h: refs/heads/master
i:
  188975: e889775
v: v3
  • Loading branch information
Dan Carpenter authored and Liam Girdwood committed Mar 22, 2010
1 parent 09c404f commit 07c3e5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fff6c04d81a2852821135736fad2d8386464753
refs/heads/master: 67e46f347eb25222e2b415540b6ba3fd2574afe2
5 changes: 5 additions & 0 deletions trunk/drivers/regulator/lp3971.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ static int __devinit setup_regulators(struct lp3971 *lp3971,
lp3971->num_regulators = pdata->num_regulators;
lp3971->rdev = kcalloc(pdata->num_regulators,
sizeof(struct regulator_dev *), GFP_KERNEL);
if (!lp3971->rdev) {
err = -ENOMEM;
goto err_nomem;
}

/* Instantiate the regulators */
for (i = 0; i < pdata->num_regulators; i++) {
Expand All @@ -461,6 +465,7 @@ static int __devinit setup_regulators(struct lp3971 *lp3971,
regulator_unregister(lp3971->rdev[i]);
kfree(lp3971->rdev);
lp3971->rdev = NULL;
err_nomem:
return err;
}

Expand Down

0 comments on commit 07c3e5c

Please sign in to comment.