diff options
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 2 | ||||
-rw-r--r-- | drivers/tty/hvc/hvc_console.c | 2 | ||||
-rw-r--r-- | drivers/tty/hvc/hvcs.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/serial_core.c | 3 | ||||
-rw-r--r-- | net/irda/ircomm/ircomm_tty.c | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index d8504279e502..e5546cb3ac69 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -1693,7 +1693,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp) | |||
1693 | * line status register. | 1693 | * line status register. |
1694 | */ | 1694 | */ |
1695 | if (info->flags & ISDN_ASYNC_INITIALIZED) { | 1695 | if (info->flags & ISDN_ASYNC_INITIALIZED) { |
1696 | tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */ | 1696 | tty_wait_until_sent_from_close(tty, 3000); /* 30 seconds timeout */ |
1697 | /* | 1697 | /* |
1698 | * Before we drop DTR, make sure the UART transmitter | 1698 | * Before we drop DTR, make sure the UART transmitter |
1699 | * has completely drained; this is especially | 1699 | * has completely drained; this is especially |
diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c index e1aaf4f309b3..b6b2d18fa38d 100644 --- a/drivers/tty/hvc/hvc_console.c +++ b/drivers/tty/hvc/hvc_console.c | |||
@@ -388,7 +388,7 @@ static void hvc_close(struct tty_struct *tty, struct file * filp) | |||
388 | * there is no buffered data otherwise sleeps on a wait queue | 388 | * there is no buffered data otherwise sleeps on a wait queue |
389 | * waking periodically to check chars_in_buffer(). | 389 | * waking periodically to check chars_in_buffer(). |
390 | */ | 390 | */ |
391 | tty_wait_until_sent(tty, HVC_CLOSE_WAIT); | 391 | tty_wait_until_sent_from_close(tty, HVC_CLOSE_WAIT); |
392 | } else { | 392 | } else { |
393 | if (hp->count < 0) | 393 | if (hp->count < 0) |
394 | printk(KERN_ERR "hvc_close %X: oops, count is %d\n", | 394 | printk(KERN_ERR "hvc_close %X: oops, count is %d\n", |
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 4c8b66546930..e523773a5480 100644 --- a/drivers/tty/hvc/hvcs.c +++ b/drivers/tty/hvc/hvcs.c | |||
@@ -1237,7 +1237,7 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp) | |||
1237 | irq = hvcsd->vdev->irq; | 1237 | irq = hvcsd->vdev->irq; |
1238 | spin_unlock_irqrestore(&hvcsd->lock, flags); | 1238 | spin_unlock_irqrestore(&hvcsd->lock, flags); |
1239 | 1239 | ||
1240 | tty_wait_until_sent(tty, HVCS_CLOSE_WAIT); | 1240 | tty_wait_until_sent_from_close(tty, HVCS_CLOSE_WAIT); |
1241 | 1241 | ||
1242 | /* | 1242 | /* |
1243 | * This line is important because it tells hvcs_open that this | 1243 | * This line is important because it tells hvcs_open that this |
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 0464360781fe..1d3780cc3b70 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -1292,7 +1292,8 @@ static void uart_close(struct tty_struct *tty, struct file *filp) | |||
1292 | spin_unlock_irqrestore(&port->lock, flags); | 1292 | spin_unlock_irqrestore(&port->lock, flags); |
1293 | 1293 | ||
1294 | if (port->closing_wait != ASYNC_CLOSING_WAIT_NONE) | 1294 | if (port->closing_wait != ASYNC_CLOSING_WAIT_NONE) |
1295 | tty_wait_until_sent(tty, msecs_to_jiffies(port->closing_wait)); | 1295 | tty_wait_until_sent_from_close(tty, |
1296 | msecs_to_jiffies(port->closing_wait)); | ||
1296 | 1297 | ||
1297 | /* | 1298 | /* |
1298 | * At this point, we stop accepting input. To do this, we | 1299 | * At this point, we stop accepting input. To do this, we |
diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c index b3cc8b3989a9..253695d43fd9 100644 --- a/net/irda/ircomm/ircomm_tty.c +++ b/net/irda/ircomm/ircomm_tty.c | |||
@@ -551,7 +551,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp) | |||
551 | */ | 551 | */ |
552 | tty->closing = 1; | 552 | tty->closing = 1; |
553 | if (self->closing_wait != ASYNC_CLOSING_WAIT_NONE) | 553 | if (self->closing_wait != ASYNC_CLOSING_WAIT_NONE) |
554 | tty_wait_until_sent(tty, self->closing_wait); | 554 | tty_wait_until_sent_from_close(tty, self->closing_wait); |
555 | 555 | ||
556 | ircomm_tty_shutdown(self); | 556 | ircomm_tty_shutdown(self); |
557 | 557 | ||