TTY: usb-serial, use tty_port_install

To have tty->port set in ->install.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jiri Slaby 2012-06-04 13:35:34 +02:00 committed by Greg Kroah-Hartman
parent bc1e99d93f
commit ca4ff100d3

View 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;