Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74321
b: refs/heads/master
c: ed206ec
h: refs/heads/master
i:
  74319: df4a132
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Nov 28, 2007
1 parent 9551e30 commit 6ce873e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 7ced46c3ad1dfaaabf9ec6c98cbb0a48e080fb11
refs/heads/master: ed206ec9ab398e1c3756ff0eb9507db1d009e65f
4 changes: 3 additions & 1 deletion trunk/drivers/usb/misc/usbled.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,14 @@ static void led_disconnect(struct usb_interface *interface)
struct usb_led *dev;

dev = usb_get_intfdata (interface);
usb_set_intfdata (interface, NULL);

device_remove_file(&interface->dev, &dev_attr_blue);
device_remove_file(&interface->dev, &dev_attr_red);
device_remove_file(&interface->dev, &dev_attr_green);

/* first remove the files, then set the pointer to NULL */
usb_set_intfdata (interface, NULL);

usb_put_dev(dev->udev);

kfree(dev);
Expand Down

0 comments on commit 6ce873e

Please sign in to comment.