Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367517
b: refs/heads/master
c: 2a2ce52
h: refs/heads/master
i:
  367515: a6a6255
v: v3
  • Loading branch information
Jingoo Han authored and Anton Vorontsov committed Apr 1, 2013
1 parent 87b8f21 commit c3fe443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: f3f66b3ea46237a0810d09279a38b5413aaf5d5e
refs/heads/master: 2a2ce52a4006db6c7831f1b21f1b0cc892516e85
5 changes: 1 addition & 4 deletions trunk/drivers/power/isp1704_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static int isp1704_charger_probe(struct platform_device *pdev)
struct isp1704_charger *isp;
int ret = -ENODEV;

isp = kzalloc(sizeof *isp, GFP_KERNEL);
isp = devm_kzalloc(&pdev->dev, sizeof(*isp), GFP_KERNEL);
if (!isp)
return -ENOMEM;

Expand Down Expand Up @@ -477,8 +477,6 @@ static int isp1704_charger_probe(struct platform_device *pdev)
isp1704_charger_set_power(isp, 0);
usb_put_phy(isp->phy);
fail0:
kfree(isp);

dev_err(&pdev->dev, "failed to register isp1704 with error %d\n", ret);

return ret;
Expand All @@ -492,7 +490,6 @@ static int isp1704_charger_remove(struct platform_device *pdev)
power_supply_unregister(&isp->psy);
usb_put_phy(isp->phy);
isp1704_charger_set_power(isp, 0);
kfree(isp);

return 0;
}
Expand Down

0 comments on commit c3fe443

Please sign in to comment.