TTY: tty3270, add tty install
authorJiri Slaby <[email protected]>
Tue, 7 Aug 2012 19:48:03 +0000 (21:48 +0200)
committerGreg Kroah-Hartman <[email protected]>
Mon, 13 Aug 2012 23:53:14 +0000 (16:53 -0700)
commit20cda6f25f9edaa26638fc32e88241af135d712d
tree73f6a873370200fad67417f9ccc933c42a2610a9
parent9c650ffc27b444f5370ae5e8bc84df76584416a0
TTY: tty3270, 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

In this case ->install is the only thing we want to do. We do not need
->open at all. See the tty->count > 1 check.

And since we take a reference in ->install, we need also ->cleanup to
drop the reference to a view.

Final note, see that we leave raw3270_find_view in place. It is
because views are removed even from module_exit.

Signed-off-by: Jiri Slaby <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: [email protected]
Cc: [email protected]
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/s390/char/tty3270.c