]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB serial: add missing .usb_driver field in serial drivers
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 11 Jan 2011 19:16:50 +0000 (14:16 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:38:59 +0000 (18:38 -0800)
commit5620b5f7f19e9ee3fcf6ecf493fed7821b7b495b
tree59aa3c05bca4552fc92903deafc3181e3df273ec
parentcc604ddd118cf4a699c12bc41a5fa2d2f225f702
USB serial: add missing .usb_driver field in serial drivers

This patch (as1443) fixes a bug found in many of the USB serial
drivers: They don't set the .usb_driver field in their
usb_serial_driver structure.  This field is needed for assigning
dynamic IDs for device matching.

In addition, starting with the 2.6.37 kernel, the .usb_driver field is
needed for proper autosuspend operation.  Without it, attempts to open
the device file will fail.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Dan Williams <dcbw@redhat.com>
CC: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_tables.h
drivers/usb/serial/iuu_phoenix.c
drivers/usb/serial/keyspan.h
drivers/usb/serial/moto_modem.c
drivers/usb/serial/oti6858.c
drivers/usb/serial/qcaux.c
drivers/usb/serial/siemens_mpi.c
drivers/usb/serial/spcp8x5.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb_debug.c