/* This routine is called whenever a 3215 tty is opened.  */
static int tty3215_open(struct tty_struct *tty, struct file *filp)
/* This routine is called whenever a 3215 tty is opened.  */
static int tty3215_open(struct tty_struct *tty, struct file *filp)
{
	struct raw3215_info *raw;
	int retval, line;
	line = tty->index;
	if ((line < 0) || (line >= NR_3215))
		return -ENODEV;
	raw = raw3215[line];
	if (raw == NULL)
		return -ENODEV;
	tty->driver_data = raw;
	raw->tty = tty;
	tty->low_latency = 0;
	retval = raw3215_startup(raw);
	if (retval)
		return retval;
	return 0;
}