]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
PCI: Delay final fixups until resources are assigned
[karo-tx-linux.git] / drivers / tty / pty.c
index c24b4db243b97fb97721730c6b5a7f57c2966ace..a62798fcc014f743df4b05065b4514cc54ed2830 100644 (file)
@@ -405,15 +405,8 @@ err:
        return retval;
 }
 
-/* this is called once with whichever end is closed last */
-static void pty_unix98_shutdown(struct tty_struct *tty)
-{
-       devpts_kill_index(tty->driver_data, tty->index);
-}
-
 static void pty_cleanup(struct tty_struct *tty)
 {
-       tty->port->itty = NULL;
        tty_port_put(tty->port);
 }
 
@@ -627,6 +620,12 @@ static void pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty)
 {
 }
 
+/* this is called once with whichever end is closed last */
+static void pty_unix98_shutdown(struct tty_struct *tty)
+{
+       devpts_kill_index(tty->driver_data, tty->index);
+}
+
 static const struct tty_operations ptm_unix98_ops = {
        .lookup = ptm_unix98_lookup,
        .install = pty_unix98_install,