]> 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>
Thu, 17 Feb 2011 22:46:41 +0000 (14:46 -0800)
commit8c2278f844365a1520a86ea5ce0dede2311bcbb2
treec55496715e74fa4efba66d6ef3ca2c1c6a97376b
parentfc9bb81e814c078006e48e552888cf00ce3f4fa7
USB serial: add missing .usb_driver field in serial drivers

commit 5620b5f7f19e9ee3fcf6ecf493fed7821b7b495b upstream.

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>
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