mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 10:20:17 -04:00
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:
committed by
Greg Kroah-Hartman
parent
bc1e99d93f
commit
ca4ff100d3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user