USB: serial: io_ti: verify interrupt endpoint at probe
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:43 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:11 +0000 (11:00 +0200)
commit9c8299b43e577828057988eb8bd4920ab656022b
treed45ee049765892944954a47ac320aba4dde334c9
parent8d9c4d9ebffe5ed7be34dad7bc4ef4ab6807c501
USB: serial: io_ti: verify interrupt endpoint at probe

Verify that the required interrupt endpoint is present at probe rather
than at open to avoid allocating resources for an unusable device.

Note that the endpoint is only required when in download mode.

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