From: Bjørn Mork Date: Sun, 27 Apr 2014 14:47:46 +0000 (+0200) Subject: usb: qcserial: remove interface number matching X-Git-Tag: firefly_0821_release~176^2~3465^2~37^2~144 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=48292d8b0726412646086821656193dbc289ce4c;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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;