Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367521
b: refs/heads/master
c: f009495
h: refs/heads/master
i:
  367519: 09e8716
v: v3
  • Loading branch information
Jingoo Han authored and Anton Vorontsov committed Apr 1, 2013
1 parent b13e4f3 commit f63cb83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 4ec730dc8c697d991b9ba8910cb3f8d985016bec
refs/heads/master: f0094958d9011d03e688251f8a9510e43a9323f6
5 changes: 2 additions & 3 deletions trunk/drivers/power/da9052-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ static s32 da9052_bat_probe(struct platform_device *pdev)
int ret;
int i;

bat = kzalloc(sizeof(struct da9052_battery), GFP_KERNEL);
bat = devm_kzalloc(&pdev->dev, sizeof(struct da9052_battery),
GFP_KERNEL);
if (!bat)
return -ENOMEM;

Expand Down Expand Up @@ -635,7 +636,6 @@ static s32 da9052_bat_probe(struct platform_device *pdev)
while (--i >= 0)
da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat);

kfree(bat);
return ret;
}
static int da9052_bat_remove(struct platform_device *pdev)
Expand All @@ -647,7 +647,6 @@ static int da9052_bat_remove(struct platform_device *pdev)
da9052_free_irq(bat->da9052, da9052_bat_irq_bits[i], bat);

power_supply_unregister(&bat->psy);
kfree(bat);

return 0;
}
Expand Down

0 comments on commit f63cb83

Please sign in to comment.