Commit 8531ae80 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

TTY: fix typos

commit 1f5c13fa upstream.

This patch (as1282) fixes some obvious typos in the TTY core.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a2822cac
...@@ -99,7 +99,7 @@ EXPORT_SYMBOL(tty_port_tty_set); ...@@ -99,7 +99,7 @@ EXPORT_SYMBOL(tty_port_tty_set);
static void tty_port_shutdown(struct tty_port *port) static void tty_port_shutdown(struct tty_port *port)
{ {
if (port->ops->shutdown && if (port->ops->shutdown &&
test_and_clear_bit(ASYNC_INITIALIZED, &port->flags)) test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags))
port->ops->shutdown(port); port->ops->shutdown(port);
} }
...@@ -309,7 +309,7 @@ int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct f ...@@ -309,7 +309,7 @@ int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct f
port->ops->drop(port); port->ops->drop(port);
return 0; return 0;
} }
set_bit(ASYNC_CLOSING, &port->flags); set_bit(ASYNCB_CLOSING, &port->flags);
tty->closing = 1; tty->closing = 1;
spin_unlock_irqrestore(&port->lock, flags); spin_unlock_irqrestore(&port->lock, flags);
/* Don't block on a stalled port, just pull the chain */ /* Don't block on a stalled port, just pull the chain */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment