TTY: add tty_port_register_device helper
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:37 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:30:54 +0000 (17:30 -0700)
commit057eb856eda1d957c0f1155eaa90739221f809a7
tree0f538f728b63c4d0545d4340b2fc175a64ffeb75
parent04831dc154df9b83c3e5fd54b18448da507871f7
TTY: add tty_port_register_device helper

This will automatically assign tty_port to tty_driver's port array for
later recall in tty_init_dev. This is intended to be called instead of
tty_register_device.

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