Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242573
b: refs/heads/master
c: 9777467
h: refs/heads/master
i:
  242571: 3022092
v: v3
  • Loading branch information
Lars-Peter Clausen committed Feb 22, 2011
1 parent e044a52 commit 4657f6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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: f722e17fdb2c97bbec2563636dd88489cdb1428b
refs/heads/master: 97774672573ac4355bd12cf84b202555c1131b69
4 changes: 2 additions & 2 deletions trunk/drivers/power/power_supply_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
dev_set_drvdata(dev, psy);
psy->dev = dev;

INIT_WORK(&psy->changed_work, power_supply_changed_work);

rc = kobject_set_name(&dev->kobj, "%s", psy->name);
if (rc)
goto kobject_set_name_failed;
Expand All @@ -179,8 +181,6 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
if (rc)
goto device_add_failed;

INIT_WORK(&psy->changed_work, power_supply_changed_work);

rc = power_supply_create_triggers(psy);
if (rc)
goto create_triggers_failed;
Expand Down

0 comments on commit 4657f6c

Please sign in to comment.