aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/tty_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c
index c767e30a1425..a4bbb28f10be 100644
--- a/drivers/char/tty_port.c
+++ b/drivers/char/tty_port.c
@@ -100,7 +100,7 @@ EXPORT_SYMBOL(tty_port_tty_set);
100static void tty_port_shutdown(struct tty_port *port) 100static void tty_port_shutdown(struct tty_port *port)
101{ 101{
102 if (port->ops->shutdown && 102 if (port->ops->shutdown &&
103 test_and_clear_bit(ASYNC_INITIALIZED, &port->flags)) 103 test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags))
104 port->ops->shutdown(port); 104 port->ops->shutdown(port);
105 105
106} 106}
@@ -311,7 +311,7 @@ int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct f
311 port->ops->drop(port); 311 port->ops->drop(port);
312 return 0; 312 return 0;
313 } 313 }
314 set_bit(ASYNC_CLOSING, &port->flags); 314 set_bit(ASYNCB_CLOSING, &port->flags);
315 tty->closing = 1; 315 tty->closing = 1;
316 spin_unlock_irqrestore(&port->lock, flags); 316 spin_unlock_irqrestore(&port->lock, flags);
317 /* Don't block on a stalled port, just pull the chain */ 317 /* Don't block on a stalled port, just pull the chain */