]> git.openfabrics.org - ~emulex/infiniband.git/commit
USB: ftdi_sio: remove obsolete port data refcounting
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:36:18 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:39:22 +0000 (13:39 -0700)
commit4cba98ff877043aeb92e86102b0250b312ddf017
tree7343a46225084216ca27feffd092e31569583407
parentafc2c9a2c359c850cea097c60a5f2b596efbbd88
USB: ftdi_sio: remove obsolete port data refcounting

Remove the port data refcounting and release the private data
explicitly at port remove.

The port data refcounting was used to make sure the port data was not
freed until the last tty reference was closed. Since moving over to tty
ports, the underlying assumptions are no longer valid as close is now
called as part of tty port shutdown, which can occur before the final
tty reference is dropped on device disconnect.

This means that the private port data refcounting is now completely
useless, as the last reference will always be dropped on port_remove.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c