diff options
author | Johan Hovold <johan@kernel.org> | 2018-05-16 11:42:07 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-05-17 11:22:00 +0200 |
commit | 79ef51894a8dfbd7c4db1d2a820c235b42499e2e (patch) | |
tree | bc02dfc74aebf5602bd2b18ee753eec2c376b765 /drivers/usb/serial/usb-serial.c | |
parent | USB: serial: option: blacklist unused dwm-158 interfaces (diff) | |
download | linux-dev-79ef51894a8dfbd7c4db1d2a820c235b42499e2e.tar.xz linux-dev-79ef51894a8dfbd7c4db1d2a820c235b42499e2e.zip |
USB: serial: use tty_port_register_device()
We already have the tty port when probing a usb-serial port so use
tty_port_register_device() directly instead of tty_port_install() later
to set up the port link.
This is a step towards enabling serdev for usb-serial (but we need to
determine how to handle hotplugging first).
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 790e0cbe3da9..44ecf0e2be9d 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -192,7 +192,7 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty) if (retval) goto error_get_interface; - retval = tty_port_install(&port->port, driver, tty); + retval = tty_standard_install(driver, tty); if (retval) goto error_init_termios; |