aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/printer.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 23:30:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-22 23:30:48 -0400
commit5cc103506289de7ee0a0b526ae0381541990cad4 (patch)
treeae8a4958e70c6d1295030b40e333dcc007b3c074 /drivers/usb/gadget/printer.c
parent73ecf3a6e3f0206bf56a0fefe3b3eda042fb7034 (diff)
parent92ca0dc5ee022e4c0e488177e1d8865a0778c6c2 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (141 commits) USB: mct_u232: fix broken close USB: gadget: amd5536udc.c: fix error path USB: imx21-hcd - fix off by one resource size calculation usb: gadget: fix Kconfig warning usb: r8a66597-udc: Add processing when USB was removed. mxc_udc: add workaround for ENGcm09152 for i.MX35 USB: ftdi_sio: add device ids for ScienceScope USB: musb: AM35x: Workaround for fifo read issue USB: musb: add musb support for AM35x USB: AM35x: Add musb support usb: Fix linker errors with CONFIG_PM=n USB: ohci-sh - use resource_size instead of defining its own resource_len macro USB: isp1362-hcd - use resource_size instead of defining its own resource_len macro USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro USB: xhci: Fix compile error when CONFIG_PM=n USB: accept some invalid ep0-maxpacket values USB: xHCI: PCI power management implementation USB: xHCI: bus power management implementation USB: xHCI: port remote wakeup implementation USB: xHCI: port power management implementation ... Manually fix up (non-data) conflict: the SCSI merge gad renamed the 'hw_sector_size' member to 'physical_block_size', and the USB tree brought a new use of it.
Diffstat (limited to 'drivers/usb/gadget/printer.c')
-rw-r--r--drivers/usb/gadget/printer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c
index 327a92a137b4..2fc8636316c5 100644
--- a/drivers/usb/gadget/printer.c
+++ b/drivers/usb/gadget/printer.c
@@ -1348,7 +1348,7 @@ printer_unbind(struct usb_gadget *gadget)
1348 set_gadget_data(gadget, NULL); 1348 set_gadget_data(gadget, NULL);
1349} 1349}
1350 1350
1351static int __ref 1351static int __init
1352printer_bind(struct usb_gadget *gadget) 1352printer_bind(struct usb_gadget *gadget)
1353{ 1353{
1354 struct printer_dev *dev; 1354 struct printer_dev *dev;
@@ -1544,7 +1544,6 @@ static struct usb_gadget_driver printer_driver = {
1544 .speed = DEVSPEED, 1544 .speed = DEVSPEED,
1545 1545
1546 .function = (char *) driver_desc, 1546 .function = (char *) driver_desc,
1547 .bind = printer_bind,
1548 .unbind = printer_unbind, 1547 .unbind = printer_unbind,
1549 1548
1550 .setup = printer_setup, 1549 .setup = printer_setup,
@@ -1580,11 +1579,11 @@ init(void)
1580 return status; 1579 return status;
1581 } 1580 }
1582 1581
1583 status = usb_gadget_register_driver(&printer_driver); 1582 status = usb_gadget_probe_driver(&printer_driver, printer_bind);
1584 if (status) { 1583 if (status) {
1585 class_destroy(usb_gadget_class); 1584 class_destroy(usb_gadget_class);
1586 unregister_chrdev_region(g_printer_devno, 1); 1585 unregister_chrdev_region(g_printer_devno, 1);
1587 DBG(dev, "usb_gadget_register_driver %x\n", status); 1586 DBG(dev, "usb_gadget_probe_driver %x\n", status);
1588 } 1587 }
1589 1588
1590 return status; 1589 return status;