/* Close down a STRIP channel. This means flushing out any pending queues, and then restoring the TTY line discipline to what it was before it got hooked to STRIP (which usually is TTY again).  */
static void strip_close(struct tty_struct *tty)
/* Close down a STRIP channel. This means flushing out any pending queues, and then restoring the TTY line discipline to what it was before it got hooked to STRIP (which usually is TTY again).  */
static void strip_close(struct tty_struct *tty)
{
	struct strip *strip_info = tty->disc_data;
	if (!strip_info || strip_info->magic != STRIP_MAGIC)
		return;
	unregister_netdev(strip_info->dev);
	tty->disc_data = NULL;
	strip_info->tty = NULL;
	printk(KERN_INFO "STRIP: device \"%s\" closed down\n",
	       strip_info->dev->name);
	strip_free(strip_info);
	tty->disc_data = NULL;
}