summaryrefslogtreecommitdiffstats
path: root/drivers/char/vt.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-08-06 15:09:28 +0200
committerLive-CD User <linux@linux.site>2009-09-19 13:13:35 -0700
commite92166517e3ca9bfb416f91e69cf0373b55b6ede (patch)
treebaabe875b5592244a62f39e4fba302a1507502a1 /drivers/char/vt.c
parent62b263585bb5005d44a764c90d80f9c4bb8188c1 (diff)
tty: handle VT specific compat ioctls in vt driver
The VT specific compat_ioctl handlers are the only ones in common code that require the BKL. Moving them into the vt driver lets us remove the BKL from the other handlers and cleans up the code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r--drivers/char/vt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 33214d92ca4..5dfbfa7d760 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -2910,6 +2910,9 @@ static const struct tty_operations con_ops = {
.flush_chars = con_flush_chars,
.chars_in_buffer = con_chars_in_buffer,
.ioctl = vt_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = vt_compat_ioctl,
+#endif
.stop = con_stop,
.start = con_start,
.throttle = con_throttle,