patch-2.4.3 linux/drivers/usb/serial/keyspan.c

Next file: linux/drivers/usb/serial/mct_u232.c
Previous file: linux/drivers/usb/serial/io_usbvend.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/usb/serial/keyspan.c linux/drivers/usb/serial/keyspan.c
@@ -839,9 +839,6 @@
 	p_priv = (struct keyspan_port_private *)(port->private);
 
 	/* Set some sane defaults */
-	p_priv->baud = 9600;
-	p_priv->cflag = CREAD | CLOCAL;
-	p_priv->flow_control = flow_none;
 	p_priv->rts_state = 1;
 	p_priv->dtr_state = 1;
 
@@ -854,16 +851,8 @@
 			dbg(__FUNCTION__ " submit urb %d failed (%d)", i, err);
 		}
 	}
-/*    Now done in startup routine
-	if (atomic_inc_return(&s_priv->active_count) == 1) {
-		s_priv->instat_urb->dev = serial->dev;
-		if ((err = usb_submit_urb(s_priv->instat_urb)) != 0) {
-			dbg(__FUNCTION__ " submit instat urb failed %d", err);
-		}
-	}
-*/
 
-	keyspan_send_setup(port);
+	keyspan_set_termios(port, NULL);
 
 	return (0);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)