commit | 49f4ff2d74f5b6a865f6433c8995855092dcf97a | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Mar 16 17:13:41 2017 +0100 |
committer | Johan Hovold <johan@kernel.org> | Tue Mar 28 11:00:10 2017 +0200 |
tree | eb2255a96893ec846bece20172e9a8e844b8d6fe | |
parent | 204cc473bc896134870fda21cd279774b3ead024 [diff] |
USB: serial: io_ti: use calc_num_endpoints to verify endpoints Use the calc_num_ports rather than attach callback to verify that the required endpoints are present when in download mode. This avoids allocating port resources for interfaces that won't be bound. Signed-off-by: Johan Hovold <johan@kernel.org>