Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72578
b: refs/heads/master
c: d718d2b
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Oct 25, 2007
1 parent c6adb60 commit baa8ce0
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: 54d2bc068fd21bcb096660938bce7c7265613a24
refs/heads/master: d718d2b17822bb92708204cb1a9175e512520261
4 changes: 3 additions & 1 deletion trunk/drivers/usb/misc/cytherm.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,16 @@ static void cytherm_disconnect(struct usb_interface *interface)
struct usb_cytherm *dev;

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

device_remove_file(&interface->dev, &dev_attr_brightness);
device_remove_file(&interface->dev, &dev_attr_temp);
device_remove_file(&interface->dev, &dev_attr_button);
device_remove_file(&interface->dev, &dev_attr_port0);
device_remove_file(&interface->dev, &dev_attr_port1);

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

usb_put_dev(dev->udev);

kfree(dev);
Expand Down

0 comments on commit baa8ce0

Please sign in to comment.