]> git.baikalelectronics.ru Git - kernel.git/commit
pty: Remove pty_unix98_shutdown()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:50 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000 (14:28 -0800)
commit70fbc97d325ba28ca43a3df6d9ad9a2650ecaddf
treea8b655742a18d3385038aec20f14005e0feebe2f
parentb4360850e895dc4c33e553fc10c9e8577d7d2c28
pty: Remove pty_unix98_shutdown()

The tty core invokes the optional driver shutdown() just before
the optional driver remove() (shutdown() has access to the termios
and remove() does not). Because pty drivers must prevent the default
remove() action, the Unix98 pty drivers define a dummy remove() function.

Instead, release the slave index in the remove() method and delete the
optional shutdown() method.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c