TTY: remove tty_locked
authorJiri Slaby <jslaby@suse.cz>
Thu, 14 Jul 2011 12:35:14 +0000 (14:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 17:34:07 +0000 (10:34 -0700)
commit906cbe1364d94da7cbf74c1d05e3e78b2883f661
treefca513a03781a2d0e2ac518aab13c8d528a0468c
parenteff4b0b9fe37873d3dc7ade0e08e6f0f89279b8b
TTY: remove tty_locked

We used it really only serial and ami_serial. The rest of the
callsites were BUG/WARN_ONs to check if BTM is held. Now that we
pruned tty_locked from both of the real users, we can get rid of
tty_lock along with __big_tty_mutex_owner.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c
drivers/tty/tty_ldisc.c
drivers/tty/tty_mutex.c
drivers/tty/vt/selection.c
include/linux/tty.h