Johan Hovold 5cb27dde2e USB: serial: clean up usb-serial bus device removal
Make sure to unregister the tty-device before calling subdriver
port_remove.

This way remove will reverse probe, and specifically any port data
released in port_remove will be available throughout tty unregister.

Note that the order currently does not matter as the tty-layer can make
callbacks also after the device has been unregistered. This is
handled in usb-serial core using the disconnected flag, which is
already set when usb-serial bus device remove is called.

Cc: Peter Hurley <peter@hurleysoftware.com>
Reported-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-25 13:48:27 -07:00
..
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2012-10-01 13:23:01 -07:00
2011-03-31 11:26:23 -03:00
2010-05-20 13:21:47 -07:00
2013-01-15 22:30:15 -08:00
2013-02-21 13:41:04 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2011-11-15 10:06:15 -08:00
2013-03-11 11:09:17 -07:00
2013-03-25 10:05:37 -07:00
2013-01-15 22:30:15 -08:00
2010-05-20 13:21:47 -07:00
2012-09-13 10:15:14 -07:00