]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: omninet: clean up port setup
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:48 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:12 +0000 (11:00 +0200)
commit2dc1071b345816eca531360a22fa7a70563a7fc2
tree28d88c0306942d84a167c9c35520fde24a6b06be
parent95254020235aa0c0f12bfb7d9b4cd18730dfc499
USB: serial: omninet: clean up port setup

These devices use the second bulk-out endpoint for writing. Instead of
using the resources of the second port structure setup by core, use the
new endpoint-remap functionality to simply ignore the first bulk-out
endpoint. This specifically avoids allocating resources for the unused
endpoint.

Note that the disconnect callback was always redundant as all URBs would
have been killed by USB core on disconnect.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/omninet.c