/* Set up the line discipline objects for a newly allocated tty. Note that the tty structure is not completely set up when this call is made.  */
void tty_ldisc_init(struct tty_struct *tty)
/* Set up the line discipline objects for a newly allocated tty. Note that the tty structure is not completely set up when this call is made.  */
void tty_ldisc_init(struct tty_struct *tty)
{
	struct tty_ldisc *ld = tty_ldisc_get(N_TTY);
	if (IS_ERR(ld))
		panic("n_tty: init_tty");
	tty_ldisc_assign(tty, ld);
}