Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330500
b: refs/heads/master
c: fb9adc5
h: refs/heads/master
v: v3
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Sep 21, 2012
1 parent e9ed478 commit 8ba3eea
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 74727c571517692ae24d0562676f2c61a86b9090
refs/heads/master: fb9adc5190d7605506ebc0e05351baa57365cc90
20 changes: 9 additions & 11 deletions trunk/drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,35 +442,33 @@ static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id)
ret = lp8727_init_device(pchg);
if (ret) {
dev_err(pchg->dev, "i2c communication err: %d", ret);
goto error;
return ret;
}

ret = lp8727_intr_config(pchg);
ret = lp8727_register_psy(pchg);
if (ret) {
dev_err(pchg->dev, "irq handler err: %d", ret);
goto error;
dev_err(pchg->dev, "power supplies register err: %d", ret);
return ret;
}

ret = lp8727_register_psy(pchg);
ret = lp8727_intr_config(pchg);
if (ret) {
dev_err(pchg->dev, "power supplies register err: %d", ret);
goto error;
dev_err(pchg->dev, "irq handler err: %d", ret);
lp8727_unregister_psy(pchg);
return ret;
}

return 0;

error:
return ret;
}

static int __devexit lp8727_remove(struct i2c_client *cl)
{
struct lp8727_chg *pchg = i2c_get_clientdata(cl);

lp8727_unregister_psy(pchg);
free_irq(pchg->client->irq, pchg);
flush_workqueue(pchg->irqthread);
destroy_workqueue(pchg->irqthread);
lp8727_unregister_psy(pchg);
return 0;
}

Expand Down

0 comments on commit 8ba3eea

Please sign in to comment.