patch-2.4.17 linux/drivers/usb/serial/visor.c
Next file: linux/drivers/usb/serial/whiteheat.c
Previous file: linux/drivers/usb/serial/usbserial.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/drivers/usb/serial/visor.c
- Orig date:
Mon Nov 12 17:53:56 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/drivers/usb/serial/visor.c linux/drivers/usb/serial/visor.c
@@ -184,7 +184,7 @@
/* All of the device info needed for the Handspring Visor */
-struct usb_serial_device_type handspring_device = {
+static struct usb_serial_device_type handspring_device = {
name: "Handspring Visor",
id_table: visor_id_table,
needs_interrupt_in: MUST_HAVE_NOT, /* this device must not have an interrupt in endpoint */
@@ -210,7 +210,7 @@
};
/* device info for the Palm 4.0 devices */
-struct usb_serial_device_type palm_4_0_device = {
+static struct usb_serial_device_type palm_4_0_device = {
name: "Palm 4.0",
id_table: palm_4_0_id_table,
needs_interrupt_in: MUST_HAVE_NOT, /* this device must not have an interrupt in endpoint */
@@ -714,9 +714,8 @@
/* stop reads and writes on all ports */
for (i=0; i < serial->num_ports; ++i) {
- while (serial->port[i].open_count > 0) {
- visor_close (&serial->port[i], NULL);
- }
+ serial->port[i].active = 0;
+ serial->port[i].open_count = 0;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)