usb: qcserial: remove interface number matching
authorBjørn Mork <bjorn@mork.no>
Sun, 27 Apr 2014 14:47:46 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 21:59:24 +0000 (14:59 -0700)
Matching on interface numbers was not such a good idea
for multi-function serial devices after all. It is much
better do create well defined device layouts, allowing
a single match entry per device.

Remove this now unused code.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/qcserial.c

index 91e7bb5..ca7b430 100644 (file)
@@ -190,13 +190,6 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
 
        }
 
-       /* allow any number of interfaces when doing direct interface match */
-       if (id->match_flags & USB_DEVICE_ID_MATCH_INT_NUMBER) {
-               dev_dbg(dev, "Generic Qualcomm serial interface found\n");
-               altsetting = 0;
-               goto done;
-       }
-
        /* default to enabling interface */
        altsetting = 0;