USB: serial: metro-usb: simplify endpoint check
authorJohan Hovold <johan@kernel.org>
Thu, 12 Oct 2017 08:54:22 +0000 (10:54 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 13 Oct 2017 07:45:09 +0000 (09:45 +0200)
commit6f792f471fad3ed16aca9ccedacdcd48fbedf7a9
treed897cbba33bfbb1827627d56170d13b267b7ff6f
parent2339536d229df25c71c0900fc619289229bfecf6
USB: serial: metro-usb: simplify endpoint check

Let usb-serial core verify that the interrupt-in endpoint is present
when binding the interface instead of the driver verifying this at every
open.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/metro-usb.c