Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261797
b: refs/heads/master
c: 7c4509b
h: refs/heads/master
i:
  261795: 659f16a
v: v3
  • Loading branch information
Wolfram Sang authored and Anton Vorontsov committed Jul 8, 2011
1 parent 1671607 commit 7dd3f8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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: 28d48f04ead41438f14d167fe61fd179de7029f3
refs/heads/master: 7c4509b4cd1d99a1ea22ee4c1da4d3dbb9771c95
2 changes: 0 additions & 2 deletions trunk/drivers/power/max17042_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ static int __devinit max17042_probe(struct i2c_client *client,
ret = power_supply_register(&client->dev, &chip->battery);
if (ret) {
dev_err(&client->dev, "failed: power supply register\n");
i2c_set_clientdata(client, NULL);
kfree(chip);
return ret;
}
Expand All @@ -202,7 +201,6 @@ static int __devexit max17042_remove(struct i2c_client *client)
struct max17042_chip *chip = i2c_get_clientdata(client);

power_supply_unregister(&chip->battery);
i2c_set_clientdata(client, NULL);
kfree(chip);
return 0;
}
Expand Down

0 comments on commit 7dd3f8a

Please sign in to comment.