diff options
Diffstat (limited to 'drivers/usb/gadget/printer.c')
-rw-r--r-- | drivers/usb/gadget/printer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 04c7bbf121af..ded080a1c8ce 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -1543,7 +1543,6 @@ static struct usb_gadget_driver printer_driver = { | |||
1543 | .speed = DEVSPEED, | 1543 | .speed = DEVSPEED, |
1544 | 1544 | ||
1545 | .function = (char *) driver_desc, | 1545 | .function = (char *) driver_desc, |
1546 | .bind = printer_bind, | ||
1547 | .unbind = printer_unbind, | 1546 | .unbind = printer_unbind, |
1548 | 1547 | ||
1549 | .setup = printer_setup, | 1548 | .setup = printer_setup, |
@@ -1579,11 +1578,11 @@ init(void) | |||
1579 | return status; | 1578 | return status; |
1580 | } | 1579 | } |
1581 | 1580 | ||
1582 | status = usb_gadget_register_driver(&printer_driver); | 1581 | status = usb_gadget_probe_driver(&printer_driver, printer_bind); |
1583 | if (status) { | 1582 | if (status) { |
1584 | class_destroy(usb_gadget_class); | 1583 | class_destroy(usb_gadget_class); |
1585 | unregister_chrdev_region(g_printer_devno, 1); | 1584 | unregister_chrdev_region(g_printer_devno, 1); |
1586 | DBG(dev, "usb_gadget_register_driver %x\n", status); | 1585 | DBG(dev, "usb_gadget_probe_driver %x\n", status); |
1587 | } | 1586 | } |
1588 | 1587 | ||
1589 | return status; | 1588 | return status; |