diff options
author | Alan Cox <alan@redhat.com> | 2008-10-13 10:36:40 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 09:51:40 -0700 |
commit | e6885107736a4dd23e7d3bc103fe6d043c63c4de (patch) | |
tree | 77454a1a03bd0021945e3e6ef08b6f39ef8dbf14 /drivers/char/tty_io.c | |
parent | b70ac7718579b5cbf3bdd74fd01132d1c91596f4 (diff) | |
download | linux-e6885107736a4dd23e7d3bc103fe6d043c63c4de.tar.gz linux-e6885107736a4dd23e7d3bc103fe6d043c63c4de.tar.bz2 linux-e6885107736a4dd23e7d3bc103fe6d043c63c4de.zip |
tty: move tioclinux from a special case
Right now we have ifdefs and hooks in the core ioctl handler for TIOCLINUX
and then test if its a console. This is brain dead. Instead call the
tioclinux helper from the relevant driver ioctl methods.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index e4dce8709541..2f05728920e7 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -3026,10 +3026,6 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return put_user(tty->ldisc.ops->num, (int __user *)p); case TIOCSETD: return tiocsetd(tty, p); -#ifdef CONFIG_VT - case TIOCLINUX: - return tioclinux(tty, arg); -#endif /* * Break handling */ |