]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/tty/vt/vt.c
TTY: vt, add ->install
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:33 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:30:53 +0000 (17:30 -0700)
commitbc1e99d93f096d5736c0bd3c2d17e13f27b6eb09
tree174133b5869279f698f331bd6782ff8d5bff51ef
parent695586ca20c56cf8cfa87160383307a288d32496
TTY: vt, add ->install

We need to initialize the console only on the first open. This is
usually what is done in the ->install hook. vt used to do this in
->open. Now we move it to ->install and use newly added helper for
install: tty_port_install. It ensures tty->port to be set properly.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c