TTY: hvc_console, add tty install
authorJiri Slaby <[email protected]>
Tue, 7 Aug 2012 19:48:04 +0000 (21:48 +0200)
committerGreg Kroah-Hartman <[email protected]>
Mon, 13 Aug 2012 23:53:14 +0000 (16:53 -0700)
commitbdb498c20040616e94b05c31a0ceb3e134b7e829
treeee86cccb1decbd9f8aa94e03e1cc03d58fcead25
parent20cda6f25f9edaa26638fc32e88241af135d712d
TTY: hvc_console, add tty install

This has two outcomes:
* we give the TTY layer a tty_port
* we do not find the info structure every time open is called on that
  tty

Since we take a reference to a port in ->install, we need also
->cleanup to drop that reference.

Signed-off-by: Jiri Slaby <[email protected]>
Cc: [email protected]
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/hvc/hvc_console.c