Subject: [PATCH 10/10] usb-serial: adds initialization code for all ports.


Initialize the write URB lock for all ports.

Signed-off-by: Luiz Capitulino <[email protected]>

drivers/usb/serial/usb-serial.c | 1 +
1 file changed, 1 insertion(+)

diff -Nparu -X /home/lcapitulino/kernels/dontdiff a/drivers/usb/serial/usb-serial.c a~/drivers/usb/serial/usb-serial.c
--- a/drivers/usb/serial/usb-serial.c 2005-12-04 20:12:18.000000000 -0200
+++ a~/drivers/usb/serial/usb-serial.c 2005-12-04 20:12:55.000000000 -0200
@@ -784,6 +784,7 @@ int usb_serial_probe(struct usb_interfac
port->number = i + serial->minor;
port->serial = serial;
sema_init(&port->sem, 1);
+ usb_serial_write_urb_lock_init(port);
INIT_WORK(&port->work, usb_serial_port_softint, port);
serial->port[i] = port;
}


--
Luiz Fernando N. Capitulino