Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97052
b: refs/heads/master
c: 0b00fc5
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent 5b3f946 commit 76e2256
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: 6c06aec2487f7568cf57471a20f422568f25d551
refs/heads/master: 0b00fc5851551781e8a30153af2c94cee9fa84af
6 changes: 2 additions & 4 deletions trunk/drivers/leds/led-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
{
int rc;

led_cdev->dev = device_create(leds_class, parent, 0, "%s",
led_cdev->name);
led_cdev->dev = device_create_drvdata(leds_class, parent, 0, led_cdev,
"%s", led_cdev->name);
if (IS_ERR(led_cdev->dev))
return PTR_ERR(led_cdev->dev);

dev_set_drvdata(led_cdev->dev, led_cdev);

/* register the attributes */
rc = device_create_file(led_cdev->dev, &dev_attr_brightness);
if (rc)
Expand Down

0 comments on commit 76e2256

Please sign in to comment.