USB: serial: ipaq: use calc_num_endpoints to verify endpoints
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:39 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:09 +0000 (11:00 +0200)
commit03b72aecadc2d7b0e8f200ec70b853e39a7e55da
tree9cc708a4d51f6d9eccbcbdf819ccab7cd2a861be
parent2f16621b9a06c1956eba57a23ff990bd24ceee82
USB: serial: ipaq: use calc_num_endpoints to verify endpoints

Use the calc_num_ports rather than attach callback to determine which
interface to bind to in order to avoid allocating port-resources for
interfaces that won't be bound.

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