aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_port.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-06-04 07:35:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-13 20:30:53 -0400
commit695586ca20c56cf8cfa87160383307a288d32496 (patch)
treefa67a6755a9b6f5a3dd3ab9104f4f4bfc2bf16ae /drivers/tty/tty_port.c
parent4c2ef53d3bfb36659c47ba589f35bcab24f425c7 (diff)
TTY: provide drivers with tty_port_install
This will be used in tty_ops->install to set tty->port (and to call tty_standard_install). Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_port.c')
-rw-r--r--drivers/tty/tty_port.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c
index bf6e238146ae..1ac8abf4708d 100644
--- a/drivers/tty/tty_port.c
+++ b/drivers/tty/tty_port.c
@@ -413,6 +413,14 @@ void tty_port_close(struct tty_port *port, struct tty_struct *tty,
413} 413}
414EXPORT_SYMBOL(tty_port_close); 414EXPORT_SYMBOL(tty_port_close);
415 415
416int tty_port_install(struct tty_port *port, struct tty_driver *driver,
417 struct tty_struct *tty)
418{
419 tty->port = port;
420 return tty_standard_install(driver, tty);
421}
422EXPORT_SYMBOL_GPL(tty_port_install);
423
416int tty_port_open(struct tty_port *port, struct tty_struct *tty, 424int tty_port_open(struct tty_port *port, struct tty_struct *tty,
417 struct file *filp) 425 struct file *filp)
418{ 426{