Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254757
b: refs/heads/master
c: 9060950
h: refs/heads/master
i:
  254755: 5f6c76e
v: v3
  • Loading branch information
Axel Lin authored and Liam Girdwood committed Jul 8, 2011
1 parent 16cd668 commit 7e69cab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: 6e0414a5c89c708efe67f828f3a9c12293ce326e
refs/heads/master: 90609503b71b6ec4aaf325c88de98da28740bc1d
14 changes: 3 additions & 11 deletions trunk/drivers/regulator/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static struct regulator_ops db8500_regulator_switch_ops = {
* Regulator information
*/
static struct db8500_regulator_info
db8500_regulator_info[DB8500_NUM_REGULATORS] = {
db8500_regulator_info[DB8500_NUM_REGULATORS] = {
[DB8500_REGULATOR_VAPE] = {
.desc = {
.name = "db8500-vape",
Expand Down Expand Up @@ -492,11 +492,9 @@ static int __devinit db8500_regulator_probe(struct platform_device *pdev)
info->desc.name, err);

/* if failing, unregister all earlier regulators */
i--;
while (i >= 0) {
while (--i >= 0) {
info = &db8500_regulator_info[i];
regulator_unregister(info->rdev);
i--;
}
return err;
}
Expand Down Expand Up @@ -536,13 +534,7 @@ static struct platform_driver db8500_regulator_driver = {

static int __init db8500_regulator_init(void)
{
int ret;

ret = platform_driver_register(&db8500_regulator_driver);
if (ret < 0)
return -ENODEV;

return 0;
return platform_driver_register(&db8500_regulator_driver);
}

static void __exit db8500_regulator_exit(void)
Expand Down

0 comments on commit 7e69cab

Please sign in to comment.