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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux