TTY: add tty_port_link_device
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Aug 2012 19:47:50 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:50:19 +0000 (16:50 -0700)
commit2cb4ca0208722836e921d5ba780b09f29d4026b8
tree85cb521a231de479cf4dea4fe7759723e25a2e57
parent72a33bf58c50892bce7ee4f58d487e818dec1c7e
TTY: add tty_port_link_device

This is for those drivers which do not have dynamic device creation
(do not call tty_port_register_device) and do not want to implement
tty->ops->install (will not call tty_port_install). They still have to
provide the link somehow though.

And this newly added function is exactly to serve that purpose.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_port.c
include/linux/tty.h