aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/oti6858.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c
index baa2ea59b921..a2080ac7b7e5 100644
--- a/drivers/usb/serial/oti6858.c
+++ b/drivers/usb/serial/oti6858.c
@@ -508,7 +508,6 @@ static void oti6858_set_termios(struct tty_struct *tty,
508static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port) 508static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port)
509{ 509{
510 struct oti6858_private *priv = usb_get_serial_port_data(port); 510 struct oti6858_private *priv = usb_get_serial_port_data(port);
511 struct ktermios tmp_termios;
512 struct usb_serial *serial = port->serial; 511 struct usb_serial *serial = port->serial;
513 struct oti6858_control_pkt *buf; 512 struct oti6858_control_pkt *buf;
514 unsigned long flags; 513 unsigned long flags;
@@ -559,7 +558,7 @@ static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port)
559 558
560 /* setup termios */ 559 /* setup termios */
561 if (tty) 560 if (tty)
562 oti6858_set_termios(tty, port, &tmp_termios); 561 oti6858_set_termios(tty, port, NULL);
563 562
564 return 0; 563 return 0;
565} 564}