TTY: move devpts kill to pty
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Oct 2012 20:26:31 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:50:13 +0000 (16:50 -0700)
commitfa2ecfc5a68d85624bbd84f7d010860776b7e602
tree531ad8fdd185f96655f084a43ee1adb291941321
parent1dcb8e6d1c23f2e021639199fdf64d5b42689207
TTY: move devpts kill to pty

Now that we have control over tty->driver_data in pty, we can just
kill the /dev/pts/ in pty code too. Namely, in ->shutdown hook of
tty. For pty, this is called only once, for whichever end is closed
last. But we don't care, both driver_data are the inode as it used to
be till now.

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