diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-08-06 13:09:28 (GMT) |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 20:13:35 (GMT) |
commit | e92166517e3ca9bfb416f91e69cf0373b55b6ede (patch) | |
tree | baabe875b5592244a62f39e4fba302a1507502a1 /drivers/char/vt.c | |
parent | 62b263585bb5005d44a764c90d80f9c4bb8188c1 (diff) | |
download | linux-fsl-qoriq-e92166517e3ca9bfb416f91e69cf0373b55b6ede.tar.xz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 33214d9..5dfbfa7 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, |