]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
TTY: usb-serial, use tty_port_install
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:34 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:30:54 +0000 (17:30 -0700)
To have tty->port set in ->install.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb-serial.c

index 6a1b609a0d94cff247460de6716a71ecfadbe707..2dc92d5cbb1e20c70bb218ce4c18ed9046174926 100644 (file)
@@ -207,7 +207,7 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty)
        if (retval)
                goto error_get_interface;
 
-       retval = tty_standard_install(driver, tty);
+       retval = tty_port_install(&port->port, driver, tty);
        if (retval)
                goto error_init_termios;