]> Pileus Git - ~andy/linux/commitdiff
USB: necessary update for mos7720 driver
authorOliver Neukum <oneukum@suse.de>
Wed, 14 Mar 2007 10:11:08 +0000 (11:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 19 Mar 2007 20:22:18 +0000 (13:22 -0700)
these devices have a shared interrupt endpoint. For serialcore to pass
an interrupt endpoint to a subdriver, the subdriver must define and
_export_ a fitting callback. The mos7720 driver failed to do so. This led
invariably to an oops upon open. This patch fixes it. The driver is useless
without it. Please try to get this into 2.6.21 and the stable kernels that
have this driver.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mos7720.c

index 2d588fb82573f998aa6b899dae13a84fceff4e1b..19bf403f9db2026dc8e20d7faea0a4eeba9ee970 100644 (file)
@@ -1628,6 +1628,7 @@ static struct usb_serial_driver moschip7720_2port_driver = {
        .chars_in_buffer        = mos7720_chars_in_buffer,
        .break_ctl              = mos7720_break,
        .read_bulk_callback     = mos7720_bulk_in_callback,
+       .read_int_callback      = mos7720_interrupt_callback,
 };
 
 static int __init moschip7720_init(void)