Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232633
b: refs/heads/master
c: d5aa475
h: refs/heads/master
i:
  232631: 4c7ef1c
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent bcd4d50 commit 54af97d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: bbfba05283ba482ab7c119150fd3c5611939f9fd
refs/heads/master: d5aa475180d03d45c5dc6134aa833f1b3e89c45e
5 changes: 2 additions & 3 deletions trunk/drivers/usb/gadget/printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,13 +1596,12 @@ cleanup(void)
int status;

mutex_lock(&usb_printer_gadget.lock_printer_io);
class_destroy(usb_gadget_class);
unregister_chrdev_region(g_printer_devno, 2);

status = usb_gadget_unregister_driver(&printer_driver);
if (status)
ERROR(dev, "usb_gadget_unregister_driver %x\n", status);

unregister_chrdev_region(g_printer_devno, 2);
class_destroy(usb_gadget_class);
mutex_unlock(&usb_printer_gadget.lock_printer_io);
}
module_exit(cleanup);

0 comments on commit 54af97d

Please sign in to comment.