/* This routine is called when the 3215 tty is closed. We wait for the remaining request to be completed. Then we clean up.  */
static void tty3215_close(struct tty_struct *tty, struct file *filp)
/* This routine is called when the 3215 tty is closed. We wait for the remaining request to be completed. Then we clean up.  */
static void tty3215_close(struct tty_struct *tty, struct file *filp)
{
	struct raw3215_info *raw;
	raw = (struct raw3215_info *) tty->driver_data;
	if (raw == NULL || tty->count > 1)
		return;
	tty->closing = 1;
	raw3215_shutdown(raw);
	tty->closing = 0;
	raw->tty = NULL;
}