• Johan Hovold's avatar
    USB: serial: omninet: clean up port setup · 2dc1071b
    Johan Hovold authored
    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: default avatarJohan Hovold <johan@kernel.org>
    2dc1071b
omninet.c 6.49 KB