aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ldisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/tty_ldisc.c')
-rw-r--r--drivers/tty/tty_ldisc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index e19e1364711..5d01d32e2cf 100644
--- a/drivers/tty/tty_ldisc.c
+++ b/drivers/tty/tty_ldisc.c
@@ -956,6 +956,19 @@ void tty_ldisc_init(struct tty_struct *tty)
956 tty_ldisc_assign(tty, ld); 956 tty_ldisc_assign(tty, ld);
957} 957}
958 958
959/**
960 * tty_ldisc_init - ldisc cleanup for new tty
961 * @tty: tty that was allocated recently
962 *
963 * The tty structure must not becompletely set up (tty_ldisc_setup) when
964 * this call is made.
965 */
966void tty_ldisc_deinit(struct tty_struct *tty)
967{
968 put_ldisc(tty->ldisc);
969 tty_ldisc_assign(tty, NULL);
970}
971
959void tty_ldisc_begin(void) 972void tty_ldisc_begin(void)
960{ 973{
961 /* Setup the default TTY line discipline. */ 974 /* Setup the default TTY line discipline. */