Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330474
b: refs/heads/master
c: 588d4f0
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Anton Vorontsov committed Aug 23, 2012
1 parent 8d6dea1 commit 1283009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fc2bc0c29a4e32da13ab75101edde030a6362d10
refs/heads/master: 588d4f0b05c9bb09c2474460be78f41813b2d861
4 changes: 3 additions & 1 deletion trunk/drivers/power/wm97xx_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ static int __devinit wm97xx_bat_probe(struct platform_device *dev)
props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */

prop = kzalloc(props * sizeof(*prop), GFP_KERNEL);
if (!prop)
if (!prop) {
ret = -ENOMEM;
goto err3;
}

prop[i++] = POWER_SUPPLY_PROP_PRESENT;
if (pdata->charge_gpio >= 0)
Expand Down

0 comments on commit 1283009

Please sign in to comment.