aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/printer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/printer.c')
-rw-r--r--drivers/usb/gadget/printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c
index 68a0efbc2719..65a8834f274b 100644
--- a/drivers/usb/gadget/printer.c
+++ b/drivers/usb/gadget/printer.c
@@ -1594,7 +1594,7 @@ cleanup(void)
1594 if (status) 1594 if (status)
1595 ERROR(dev, "usb_gadget_unregister_driver %x\n", status); 1595 ERROR(dev, "usb_gadget_unregister_driver %x\n", status);
1596 1596
1597 unregister_chrdev_region(g_printer_devno, 2); 1597 unregister_chrdev_region(g_printer_devno, 1);
1598 class_destroy(usb_gadget_class); 1598 class_destroy(usb_gadget_class);
1599 mutex_unlock(&usb_printer_gadget.lock_printer_io); 1599 mutex_unlock(&usb_printer_gadget.lock_printer_io);
1600} 1600}