Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350421
b: refs/heads/master
c: a1a41ab
h: refs/heads/master
i:
  350419: 21f4195
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 8, 2013
1 parent f93bd88 commit 9c7c785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: b59320cc5a5e6ceaa17f0895ffbe0711ebad7adf
refs/heads/master: a1a41ab4e92a42d380286a6aadb1026a2b352801
9 changes: 5 additions & 4 deletions trunk/drivers/regulator/lp8755.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ static int lp8755_regulator_init(struct lp8755_chip *pchip)
regulator_register(&lp8755_regulators[buck_num], &rconfig);
if (IS_ERR(pchip->rdev[buck_num])) {
ret = PTR_ERR(pchip->rdev[buck_num]);
dev_err(pchip->dev, "regulator init failed: buck 0\n");
pchip->rdev[buck_num] = NULL;
dev_err(pchip->dev, "regulator init failed: buck %d\n",
buck_num);
goto err_buck;
}
}
Expand All @@ -367,8 +369,7 @@ static int lp8755_regulator_init(struct lp8755_chip *pchip)

err_buck:
for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++)
if (pchip->rdev[icnt] != NULL)
regulator_unregister(pchip->rdev[icnt]);
regulator_unregister(pchip->rdev[icnt]);
return ret;
}

Expand Down Expand Up @@ -557,7 +558,7 @@ static struct i2c_driver lp8755_i2c_driver = {
.name = LP8755_NAME,
},
.probe = lp8755_probe,
.remove = __devexit_p(lp8755_remove),
.remove = lp8755_remove,
.id_table = lp8755_id,
};

Expand Down

0 comments on commit 9c7c785

Please sign in to comment.