summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/qcserial.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2014-04-27 16:47:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 14:59:24 -0700
commit48292d8b0726412646086821656193dbc289ce4c (patch)
tree7c4d497624e67c3b3cc3f90e54bf16de4697c76e /drivers/usb/serial/qcserial.c
parent8bc7a069402e1a443ded8088a8be0dc8aa1c2c9b (diff)
downloadblackbird-obmc-linux-48292d8b0726412646086821656193dbc289ce4c.tar.gz
blackbird-obmc-linux-48292d8b0726412646086821656193dbc289ce4c.zip
usb: qcserial: remove interface number matching
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>
Diffstat (limited to 'drivers/usb/serial/qcserial.c')
-rw-r--r--drivers/usb/serial/qcserial.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c
index 91e7bb515398..ca7b43092439 100644
--- a/drivers/usb/serial/qcserial.c
+++ b/drivers/usb/serial/qcserial.c
@@ -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;
OpenPOWER on IntegriCloud