提交 b39c49a0 编写于 作者: J Jiri Slaby 提交者: Greg Kroah-Hartman

TTY: serial, do not touch tty->alt_speed

It is not used at all, so no need to play any games with that.
Signed-off-by: NJiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cf75525f
...@@ -141,8 +141,7 @@ static int uart_startup(struct tty_struct *tty, struct uart_state *state, int in ...@@ -141,8 +141,7 @@ static int uart_startup(struct tty_struct *tty, struct uart_state *state, int in
/* /*
* Set the TTY IO error marker - we will only clear this * Set the TTY IO error marker - we will only clear this
* once we have successfully opened the port. Also set * once we have successfully opened the port.
* up the tty->alt_speed kludge
*/ */
set_bit(TTY_IO_ERROR, &tty->flags); set_bit(TTY_IO_ERROR, &tty->flags);
...@@ -1499,7 +1498,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp) ...@@ -1499,7 +1498,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
tty->driver_data = state; tty->driver_data = state;
state->uart_port->state = state; state->uart_port->state = state;
tty->low_latency = (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0; tty->low_latency = (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0;
tty->alt_speed = 0;
tty_port_tty_set(port, tty); tty_port_tty_set(port, tty);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册