]> git.baikalelectronics.ru Git - kernel.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)
commit32a391e80bf4d306de09f7ab76962044a63747ea
tree7343a46225084216ca27feffd092e31569583407
parent97524d0863dc12f548a3af7dbf3187102b97b8e4
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