tty: Move the handling of the tty release logic

Now that we don't have tty->termios tied to drivers->tty we can untangle
the logic here. In addition we can push the removal logic out of the
destructor path.

At that point we can think about sorting out tty_port and console and all
the other ugly hangovers.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alan Cox
2012-07-17 17:06:57 +01:00
committed by Greg Kroah-Hartman
부모 3db1ddb725
커밋 36b3c070d2
6개의 변경된 파일34개의 추가작업 그리고 50개의 파일을 삭제

파일 보기

@@ -2850,7 +2850,6 @@ static void con_shutdown(struct tty_struct *tty)
console_lock();
vc->port.tty = NULL;
console_unlock();
tty_shutdown(tty);
}
static int default_italic_color = 2; // green (ASCII)