USB: serial: use tty_port_register_device()
authorJohan Hovold <johan@kernel.org>
Wed, 16 May 2018 09:42:07 +0000 (11:42 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 17 May 2018 09:22:00 +0000 (11:22 +0200)
commit79ef51894a8dfbd7c4db1d2a820c235b42499e2e
treebc02dfc74aebf5602bd2b18ee753eec2c376b765
parent4d304a6fe93538ce356b4593dc43476b50c023e7
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>
drivers/usb/serial/bus.c
drivers/usb/serial/usb-serial.c