rs_flush_buffer(tty);
tty_ldisc_flush(tty);
port->tty = NULL;
- if (port->blocked_open) {
- if (port->close_delay)
- schedule_timeout_interruptible(port->close_delay);
- wake_up_interruptible(&port->open_wait);
- }
- port->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING);
- wake_up_interruptible(&port->close_wait);
+
+ tty_port_close_end(port, tty);
}
/*
.proc_fops = &rs_proc_fops,
};
+static const struct tty_port_operations hp_port_ops = {
+};
+
/*
* The serial driver boot-time initialization code!
*/
*/
state = rs_table;
tty_port_init(&state->port);
+ state->port.ops = &hp_port_ops;
state->port.close_delay = 0; /* XXX really 0? */
retval = hpsim_get_irq(KEYBOARD_INTR);