TTY: extract /dev/tty handling from tty_open
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:33:19 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:52:44 +0000 (15:52 -0800)
commitb82154ac37a7d12335c7c3d3c34c549171ec0cb4
tree05134dd2d0f388027de03d513678de15bebc4566
parent1411dc4aa21d364f40ed363c8e715939c15f57c2
TTY: extract /dev/tty handling from tty_open

This one is special to others (done in the next patch). We have the
tty directly, not its driver and index. So this will reside in a
separation function. In the next patch, the rest will be moved to
another function.

So now we set neither driver nor index. Hence we need to init driver
and check whether we are supposed to put a ref of that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_io.c