Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97053
b: refs/heads/master
c: 54d29ad
h: refs/heads/master
i:
  97051: 5b3f946
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent 76e2256 commit 076e3d3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0b00fc5851551781e8a30153af2c94cee9fa84af
refs/heads/master: 54d29ad33e3483bcc7ca433a21cf294854e5154a
6 changes: 2 additions & 4 deletions trunk/drivers/power/power_supply_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,13 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
{
int rc = 0;

psy->dev = device_create(power_supply_class, parent, 0,
"%s", psy->name);
psy->dev = device_create_drvdata(power_supply_class, parent, 0,
psy, "%s", psy->name);
if (IS_ERR(psy->dev)) {
rc = PTR_ERR(psy->dev);
goto dev_create_failed;
}

dev_set_drvdata(psy->dev, psy);

INIT_WORK(&psy->changed_work, power_supply_changed_work);

rc = power_supply_create_attrs(psy);
Expand Down

0 comments on commit 076e3d3

Please sign in to comment.