Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367523
b: refs/heads/master
c: feeb3a9
h: refs/heads/master
i:
  367521: f63cb83
  367519: 09e8716
v: v3
  • Loading branch information
Jingoo Han authored and Anton Vorontsov committed Apr 1, 2013
1 parent 3f690f7 commit c5575a6
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: bc67ea8e92d45d1237e289fd1c1ec004a8383ccc
refs/heads/master: feeb3a92b1f4e4b53bbad2b1c0d0eb1bcdd6d5a7
5 changes: 2 additions & 3 deletions trunk/drivers/power/max8925_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ static int max8925_power_probe(struct platform_device *pdev)
return -EINVAL;
}

info = kzalloc(sizeof(struct max8925_power_info), GFP_KERNEL);
info = devm_kzalloc(&pdev->dev, sizeof(struct max8925_power_info),
GFP_KERNEL);
if (!info)
return -ENOMEM;
info->chip = chip;
Expand Down Expand Up @@ -546,7 +547,6 @@ static int max8925_power_probe(struct platform_device *pdev)
out_usb:
power_supply_unregister(&info->ac);
out:
kfree(info);
return ret;
}

Expand All @@ -559,7 +559,6 @@ static int max8925_power_remove(struct platform_device *pdev)
power_supply_unregister(&info->usb);
power_supply_unregister(&info->battery);
max8925_deinit_charger(info);
kfree(info);
}
return 0;
}
Expand Down

0 comments on commit c5575a6

Please sign in to comment.