aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/hp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r--arch/ia64/hp/sim/simserial.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c
index d173dba306df..53db99af43a2 100644
--- a/arch/ia64/hp/sim/simserial.c
+++ b/arch/ia64/hp/sim/simserial.c
@@ -478,13 +478,8 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
478 rs_flush_buffer(tty); 478 rs_flush_buffer(tty);
479 tty_ldisc_flush(tty); 479 tty_ldisc_flush(tty);
480 port->tty = NULL; 480 port->tty = NULL;
481 if (port->blocked_open) { 481
482 if (port->close_delay) 482 tty_port_close_end(port, tty);
483 schedule_timeout_interruptible(port->close_delay);
484 wake_up_interruptible(&port->open_wait);
485 }
486 port->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING);
487 wake_up_interruptible(&port->close_wait);
488} 483}
489 484
490/* 485/*
@@ -706,6 +701,9 @@ static const struct tty_operations hp_ops = {
706 .proc_fops = &rs_proc_fops, 701 .proc_fops = &rs_proc_fops,
707}; 702};
708 703
704static const struct tty_port_operations hp_port_ops = {
705};
706
709/* 707/*
710 * The serial driver boot-time initialization code! 708 * The serial driver boot-time initialization code!
711 */ 709 */
@@ -742,6 +740,7 @@ static int __init simrs_init(void)
742 */ 740 */
743 state = rs_table; 741 state = rs_table;
744 tty_port_init(&state->port); 742 tty_port_init(&state->port);
743 state->port.ops = &hp_port_ops;
745 state->port.close_delay = 0; /* XXX really 0? */ 744 state->port.close_delay = 0; /* XXX really 0? */
746 745
747 retval = hpsim_get_irq(KEYBOARD_INTR); 746 retval = hpsim_get_irq(KEYBOARD_INTR);