TTY: pty, fix pty counting
[firefly-linux-kernel-4.4.55.git] / drivers / tty / tty_io.c
index 6556f7452ba6f960a9f083068f1674164c93ff11..b6f92d3001add88088f470daafde7d981f3f2a26 100644 (file)
@@ -1294,8 +1294,7 @@ static int tty_driver_install_tty(struct tty_driver *driver,
  *
  *     Locking: tty_mutex for now
  */
-static void tty_driver_remove_tty(struct tty_driver *driver,
-                                               struct tty_struct *tty)
+void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty)
 {
        if (driver->ops->remove)
                driver->ops->remove(driver, tty);