Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350423
b: refs/heads/master
c: 240a529
h: refs/heads/master
i:
  350421: 9c7c785
  350419: 21f4195
  350415: 2b98ed7
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 17, 2013
1 parent 2260ef1 commit a4af0fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: cad877ef0af8d18aae88bb7d0f30f747f003fd0f
refs/heads/master: 240a529108a11d235328a140fe6b03cf76cef099
19 changes: 10 additions & 9 deletions trunk/drivers/regulator/lp8755.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,35 +497,36 @@ static int lp8755_probe(struct i2c_client *client,
if (!pchip->pdata)
return -ENOMEM;
ret = lp8755_init_data(pchip);
if (ret < 0)
goto err_chip_init;
if (ret < 0) {
dev_err(&client->dev, "fail to initialize chip\n");
return ret;
}
}

ret = lp8755_regulator_init(pchip);
if (ret < 0)
if (ret < 0) {
dev_err(&client->dev, "fail to initialize regulators\n");
goto err_regulator;
}

pchip->irq = client->irq;
ret = lp8755_int_config(pchip);
if (ret < 0)
if (ret < 0) {
dev_err(&client->dev, "fail to irq config\n");
goto err_irq;
}

return ret;

err_irq:
dev_err(&client->dev, "fail to irq config\n");

for (icnt = 0; icnt < mphase_buck[pchip->mphase].nreg; icnt++)
regulator_unregister(pchip->rdev[icnt]);

err_regulator:
dev_err(&client->dev, "fail to initialize regulators\n");
/* output disable */
for (icnt = 0; icnt < 0x06; icnt++)
lp8755_write(pchip, icnt, 0x00);

err_chip_init:
dev_err(&client->dev, "fail to initialize chip\n");
return ret;
}

Expand Down

0 comments on commit a4af0fa

Please sign in to comment.