USB: ipaq: fix devices having more than one endpoint
authorMatthias Geissert <matthias.geissert@web.de>
Thu, 6 Mar 2008 21:00:33 +0000 (22:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:40 +0000 (21:16 -0700)
The ipaq module  supports devices with one endpoint only. Some devices,
e.g. Yakumo Delta 300, have more than one endpoint.

This patch fixes support for devices having up to 2 endpoints which used
to work on older kernel versions.

Signed-off-by: Matthias Geissert <matthias.geissert@web.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ipaq.c

index 9b38a08ac83a6803cda3d0123ae26f32b42a851a..17f2a53b8ba437e63eeb3bfd3d40f25cb84fd983 100644 (file)
@@ -571,9 +571,9 @@ static struct usb_serial_driver ipaq_device = {
        .usb_driver =           &ipaq_driver,
        .id_table =             ipaq_id_table,
        .num_interrupt_in =     NUM_DONT_CARE,
-       .num_bulk_in =          1,
-       .num_bulk_out =         1,
-       .num_ports =            1,
+       .num_bulk_in =          NUM_DONT_CARE,
+       .num_bulk_out =         NUM_DONT_CARE,
+       .num_ports =            2,
        .open =                 ipaq_open,
        .close =                ipaq_close,
        .attach =               ipaq_startup,