Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350606
b: refs/heads/master
c: 05ac539
h: refs/heads/master
v: v3
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Jan 6, 2013
1 parent 7065e34 commit 6229b12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ffd8f9a727f27270584c7472ca56cce1e4736888
refs/heads/master: 05ac539b4fb4f7d7d0f3123c5bb81a4b34aa5327
5 changes: 3 additions & 2 deletions trunk/drivers/power/lp8788-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,10 @@ static int lp8788_charger_probe(struct platform_device *pdev)
{
struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent);
struct lp8788_charger *pchg;
struct device *dev = &pdev->dev;
int ret;

pchg = devm_kzalloc(lp->dev, sizeof(struct lp8788_charger), GFP_KERNEL);
pchg = devm_kzalloc(dev, sizeof(struct lp8788_charger), GFP_KERNEL);
if (!pchg)
return -ENOMEM;

Expand All @@ -718,7 +719,7 @@ static int lp8788_charger_probe(struct platform_device *pdev)

ret = lp8788_irq_register(pdev, pchg);
if (ret)
dev_warn(lp->dev, "failed to register charger irq: %d\n", ret);
dev_warn(dev, "failed to register charger irq: %d\n", ret);

return 0;
}
Expand Down

0 comments on commit 6229b12

Please sign in to comment.