Commit a9be82a1 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] callout removal: callout is gone

OK, that's it - no callout drivers left, so we drop the warning from
tty_open() and kill the code that handles them in /proc/tty/drivers.
parent d9e9b8c8
......@@ -1305,7 +1305,6 @@ static int tty_open(struct inode * inode, struct file * filp)
int index;
kdev_t device;
unsigned short saved_flags;
char buf[64];
saved_flags = filp->f_flags;
retry_open:
......@@ -1379,7 +1378,7 @@ static int tty_open(struct inode * inode, struct file * filp)
tty->driver->subtype == PTY_TYPE_MASTER)
noctty = 1;
#ifdef TTY_DEBUG_HANGUP
printk(KERN_DEBUG "opening %s...", tty_name(tty, buf));
printk(KERN_DEBUG "opening %s...", tty->name);
#endif
if (tty->driver->open)
retval = tty->driver->open(tty, filp);
......@@ -1393,7 +1392,7 @@ static int tty_open(struct inode * inode, struct file * filp)
if (retval) {
#ifdef TTY_DEBUG_HANGUP
printk(KERN_DEBUG "error %d in opening %s...", retval,
tty_name(tty, buf));
tty->name);
#endif
release_dev(filp);
......@@ -1419,19 +1418,6 @@ static int tty_open(struct inode * inode, struct file * filp)
tty->session = current->session;
tty->pgrp = current->pgrp;
}
if ((tty->driver->type == TTY_DRIVER_TYPE_SERIAL) &&
(tty->driver->subtype == SERIAL_TYPE_CALLOUT) &&
(tty->count == 1)) {
static int nr_warns;
if (nr_warns < 5) {
printk(KERN_WARNING "tty_io.c: "
"process %d (%s) used obsolete /dev/%s - "
"update software to use /dev/ttyS%d\n",
current->pid, current->comm,
tty_name(tty, buf), TTY_NUMBER(tty));
nr_warns++;
}
}
return 0;
}
......
......@@ -57,8 +57,6 @@ static void show_tty_range(struct seq_file *m, struct tty_driver *p,
break;
case TTY_DRIVER_TYPE_SERIAL:
seq_printf(m, "serial");
if (p->subtype == 2)
seq_printf(m, ":callout");
break;
case TTY_DRIVER_TYPE_PTY:
if (p->subtype == PTY_TYPE_MASTER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment