USB: ti_usb_3410_5052: fix dynamic-id matching
authorJohan Hovold <jhovold@gmail.com>
Fri, 28 Jun 2013 10:24:26 +0000 (12:24 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:15:07 +0000 (22:15 +0200)
commit9e91b416342dcf58973bc01ace6429f4af10f540
treec62794221fac8b741f3584aa29ec668bf118c7b4
parentbbacf54234dd47e0f976918a4b88a839025461a2
USB: ti_usb_3410_5052: fix dynamic-id matching

commit 1fad56424f5ad3ce4973505a357212b2e2282b3f upstream.

The driver failed to take the dynamic ids into account when determining
the device type and therefore all devices were detected as 2-port
devices when using the dynamic-id interface.

Match on the usb-serial-driver field instead of doing redundant id-table
searches.

Reported-by: Anders Hammarquist <iko@iko.pp.se>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/ti_usb_3410_5052.c