From: Johan Hovold Date: Wed, 17 Mar 2010 22:06:06 +0000 (+0100) Subject: USB: serial: allow custom multi-urb write bulk callbacks X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=40f92f0dcd9b215c48c53a226328e8e36615e367;p=openwrt%2Fstaging%2Fblogic.git USB: serial: allow custom multi-urb write bulk callbacks Allow drivers to implement their own multi-urb write bulk callbacks as we do for single urb writes. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 9756b5c22d94..be52c748bccb 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -217,7 +217,7 @@ static int usb_serial_multi_urb_write(struct tty_struct *tty, usb_sndbulkpipe(port->serial->dev, port->bulk_out_endpointAddress), buffer, towrite, - usb_serial_generic_write_bulk_callback, port); + port->serial->type->write_bulk_callback, port); status = usb_submit_urb(urb, GFP_ATOMIC); if (status) {