summaryrefslogtreecommitdiffstats
path: root/drivers/char/vt_ioctl.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-10-13 11:36:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-13 18:51:40 +0200
commite6885107736a4dd23e7d3bc103fe6d043c63c4de (patch)
tree77454a1a03bd0021945e3e6ef08b6f39ef8dbf14 /drivers/char/vt_ioctl.c
parentserial: allow 8250 to be used on sparc (diff)
downloadlinux-e6885107736a4dd23e7d3bc103fe6d043c63c4de.tar.xz
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/vt_ioctl.c')
-rw-r--r--drivers/char/vt_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c
index c904e9ad4a71..8944ce508e2f 100644
--- a/drivers/char/vt_ioctl.c
+++ b/drivers/char/vt_ioctl.c
@@ -395,6 +395,8 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
kbd = kbd_table + console;
switch (cmd) {
+ case TIOCLINUX:
+ return tioclinux(tty, arg);
case KIOCSOUND:
if (!perm)
goto eperm;