USB: serial-generic: use a single set of device IDs
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 31 May 2012 21:03:52 +0000 (17:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 21:01:56 +0000 (14:01 -0700)
commit0b84704a2d6fdf55a3dcdd2a1f2ac8b48913c84b
tree8927ef05a82096047c25a04f1bc7ca3d0f480dbe
parent954c3f8a5f1b7716be9eee978b3bc85bae92d7c8
USB: serial-generic: use a single set of device IDs

The usb-serial-generic driver uses different device IDs for its USB
matching and its serial matching.  This can lead to problems: The
driver can end up getting bound to a USB interface without being
allowed to bind to the corresponding serial port.

This patch (as1557) fixes the problem by using the same device ID
table (the one that can be altered by the "vendor=" and "product="
module parameters) for both purposes.  The unused table is removed.
Now the driver will bind only to the intended devices.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c