diff options
Diffstat (limited to 'drivers')
36 files changed, 104 insertions, 45 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index 86bcf63b6ba5..46c856a187a2 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
@@ -572,8 +572,17 @@ static void aircable_unthrottle(struct usb_serial_port *port) | |||
572 | schedule_work(&priv->rx_work); | 572 | schedule_work(&priv->rx_work); |
573 | } | 573 | } |
574 | 574 | ||
575 | static struct usb_driver aircable_driver = { | ||
576 | .name = "aircable", | ||
577 | .probe = usb_serial_probe, | ||
578 | .disconnect = usb_serial_disconnect, | ||
579 | .id_table = id_table, | ||
580 | .no_dynamic_id = 1, | ||
581 | }; | ||
582 | |||
575 | static struct usb_serial_driver aircable_device = { | 583 | static struct usb_serial_driver aircable_device = { |
576 | .description = "aircable", | 584 | .description = "aircable", |
585 | .usb_driver = &aircable_driver, | ||
577 | .id_table = id_table, | 586 | .id_table = id_table, |
578 | .num_ports = 1, | 587 | .num_ports = 1, |
579 | .attach = aircable_attach, | 588 | .attach = aircable_attach, |
@@ -587,13 +596,6 @@ static struct usb_serial_driver aircable_device = { | |||
587 | .unthrottle = aircable_unthrottle, | 596 | .unthrottle = aircable_unthrottle, |
588 | }; | 597 | }; |
589 | 598 | ||
590 | static struct usb_driver aircable_driver = { | ||
591 | .name = "aircable", | ||
592 | .probe = usb_serial_probe, | ||
593 | .disconnect = usb_serial_disconnect, | ||
594 | .id_table = id_table, | ||
595 | }; | ||
596 | |||
597 | static int __init aircable_init (void) | 599 | static int __init aircable_init (void) |
598 | { | 600 | { |
599 | int retval; | 601 | int retval; |
diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c index f2ca76a9cbac..0af42e32fa0a 100644 --- a/drivers/usb/serial/airprime.c +++ b/drivers/usb/serial/airprime.c | |||
@@ -277,6 +277,7 @@ static struct usb_serial_driver airprime_device = { | |||
277 | .owner = THIS_MODULE, | 277 | .owner = THIS_MODULE, |
278 | .name = "airprime", | 278 | .name = "airprime", |
279 | }, | 279 | }, |
280 | .usb_driver = &airprime_driver, | ||
280 | .id_table = id_table, | 281 | .id_table = id_table, |
281 | .num_interrupt_in = NUM_DONT_CARE, | 282 | .num_interrupt_in = NUM_DONT_CARE, |
282 | .num_bulk_in = NUM_DONT_CARE, | 283 | .num_bulk_in = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 5261cd22ee6b..edd685791a6b 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -444,6 +444,7 @@ static struct usb_driver ark3116_driver = { | |||
444 | .probe = usb_serial_probe, | 444 | .probe = usb_serial_probe, |
445 | .disconnect = usb_serial_disconnect, | 445 | .disconnect = usb_serial_disconnect, |
446 | .id_table = id_table, | 446 | .id_table = id_table, |
447 | .no_dynamic_id = 1, | ||
447 | }; | 448 | }; |
448 | 449 | ||
449 | static struct usb_serial_driver ark3116_device = { | 450 | static struct usb_serial_driver ark3116_device = { |
@@ -452,6 +453,7 @@ static struct usb_serial_driver ark3116_device = { | |||
452 | .name = "ark3116", | 453 | .name = "ark3116", |
453 | }, | 454 | }, |
454 | .id_table = id_table, | 455 | .id_table = id_table, |
456 | .usb_driver = &ark3116_driver, | ||
455 | .num_interrupt_in = 1, | 457 | .num_interrupt_in = 1, |
456 | .num_bulk_in = 1, | 458 | .num_bulk_in = 1, |
457 | .num_bulk_out = 1, | 459 | .num_bulk_out = 1, |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 38b4dae319ee..3b800d277c4b 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -126,6 +126,7 @@ static struct usb_serial_driver belkin_device = { | |||
126 | .name = "belkin", | 126 | .name = "belkin", |
127 | }, | 127 | }, |
128 | .description = "Belkin / Peracom / GoHubs USB Serial Adapter", | 128 | .description = "Belkin / Peracom / GoHubs USB Serial Adapter", |
129 | .usb_driver = &belkin_driver, | ||
129 | .id_table = id_table_combined, | 130 | .id_table = id_table_combined, |
130 | .num_interrupt_in = 1, | 131 | .num_interrupt_in = 1, |
131 | .num_bulk_in = 1, | 132 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/cp2101.c b/drivers/usb/serial/cp2101.c index 7ebaffd6ed86..06b4fffc189c 100644 --- a/drivers/usb/serial/cp2101.c +++ b/drivers/usb/serial/cp2101.c | |||
@@ -89,6 +89,7 @@ static struct usb_serial_driver cp2101_device = { | |||
89 | .owner = THIS_MODULE, | 89 | .owner = THIS_MODULE, |
90 | .name = "cp2101", | 90 | .name = "cp2101", |
91 | }, | 91 | }, |
92 | .usb_driver = &cp2101_driver, | ||
92 | .id_table = id_table, | 93 | .id_table = id_table, |
93 | .num_interrupt_in = 0, | 94 | .num_interrupt_in = 0, |
94 | .num_bulk_in = 0, | 95 | .num_bulk_in = 0, |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index a63c3286caa0..4167753ed31f 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -88,6 +88,7 @@ static struct usb_serial_driver cyberjack_device = { | |||
88 | .name = "cyberjack", | 88 | .name = "cyberjack", |
89 | }, | 89 | }, |
90 | .description = "Reiner SCT Cyberjack USB card reader", | 90 | .description = "Reiner SCT Cyberjack USB card reader", |
91 | .usb_driver = &cyberjack_driver, | ||
91 | .id_table = id_table, | 92 | .id_table = id_table, |
92 | .num_interrupt_in = 1, | 93 | .num_interrupt_in = 1, |
93 | .num_bulk_in = 1, | 94 | .num_bulk_in = 1, |
@@ -98,7 +99,7 @@ static struct usb_serial_driver cyberjack_device = { | |||
98 | .open = cyberjack_open, | 99 | .open = cyberjack_open, |
99 | .close = cyberjack_close, | 100 | .close = cyberjack_close, |
100 | .write = cyberjack_write, | 101 | .write = cyberjack_write, |
101 | .write_room = cyberjack_write_room, | 102 | .write_room = cyberjack_write_room, |
102 | .read_int_callback = cyberjack_read_int_callback, | 103 | .read_int_callback = cyberjack_read_int_callback, |
103 | .read_bulk_callback = cyberjack_read_bulk_callback, | 104 | .read_bulk_callback = cyberjack_read_bulk_callback, |
104 | .write_bulk_callback = cyberjack_write_bulk_callback, | 105 | .write_bulk_callback = cyberjack_write_bulk_callback, |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 6bc1f404e186..57b8e27285fc 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -193,6 +193,7 @@ static struct usb_serial_driver cypress_earthmate_device = { | |||
193 | .name = "earthmate", | 193 | .name = "earthmate", |
194 | }, | 194 | }, |
195 | .description = "DeLorme Earthmate USB", | 195 | .description = "DeLorme Earthmate USB", |
196 | .usb_driver = &cypress_driver, | ||
196 | .id_table = id_table_earthmate, | 197 | .id_table = id_table_earthmate, |
197 | .num_interrupt_in = 1, | 198 | .num_interrupt_in = 1, |
198 | .num_interrupt_out = 1, | 199 | .num_interrupt_out = 1, |
@@ -222,6 +223,7 @@ static struct usb_serial_driver cypress_hidcom_device = { | |||
222 | .name = "cyphidcom", | 223 | .name = "cyphidcom", |
223 | }, | 224 | }, |
224 | .description = "HID->COM RS232 Adapter", | 225 | .description = "HID->COM RS232 Adapter", |
226 | .usb_driver = &cypress_driver, | ||
225 | .id_table = id_table_cyphidcomrs232, | 227 | .id_table = id_table_cyphidcomrs232, |
226 | .num_interrupt_in = 1, | 228 | .num_interrupt_in = 1, |
227 | .num_interrupt_out = 1, | 229 | .num_interrupt_out = 1, |
@@ -251,6 +253,7 @@ static struct usb_serial_driver cypress_ca42v2_device = { | |||
251 | .name = "nokiaca42v2", | 253 | .name = "nokiaca42v2", |
252 | }, | 254 | }, |
253 | .description = "Nokia CA-42 V2 Adapter", | 255 | .description = "Nokia CA-42 V2 Adapter", |
256 | .usb_driver = &cypress_driver, | ||
254 | .id_table = id_table_nokiaca42v2, | 257 | .id_table = id_table_nokiaca42v2, |
255 | .num_interrupt_in = 1, | 258 | .num_interrupt_in = 1, |
256 | .num_interrupt_out = 1, | 259 | .num_interrupt_out = 1, |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index efd9ce3f931f..0b0fb51bad3e 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -509,6 +509,7 @@ static struct usb_serial_driver digi_acceleport_2_device = { | |||
509 | .name = "digi_2", | 509 | .name = "digi_2", |
510 | }, | 510 | }, |
511 | .description = "Digi 2 port USB adapter", | 511 | .description = "Digi 2 port USB adapter", |
512 | .usb_driver = &digi_driver, | ||
512 | .id_table = id_table_2, | 513 | .id_table = id_table_2, |
513 | .num_interrupt_in = 0, | 514 | .num_interrupt_in = 0, |
514 | .num_bulk_in = 4, | 515 | .num_bulk_in = 4, |
@@ -538,6 +539,7 @@ static struct usb_serial_driver digi_acceleport_4_device = { | |||
538 | .name = "digi_4", | 539 | .name = "digi_4", |
539 | }, | 540 | }, |
540 | .description = "Digi 4 port USB adapter", | 541 | .description = "Digi 4 port USB adapter", |
542 | .usb_driver = &digi_driver, | ||
541 | .id_table = id_table_4, | 543 | .id_table = id_table_4, |
542 | .num_interrupt_in = 0, | 544 | .num_interrupt_in = 0, |
543 | .num_bulk_in = 5, | 545 | .num_bulk_in = 5, |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 92beeb19795f..4703c8f85383 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -117,6 +117,7 @@ static struct usb_serial_driver empeg_device = { | |||
117 | .name = "empeg", | 117 | .name = "empeg", |
118 | }, | 118 | }, |
119 | .id_table = id_table, | 119 | .id_table = id_table, |
120 | .usb_driver = &empeg_driver, | ||
120 | .num_interrupt_in = 0, | 121 | .num_interrupt_in = 0, |
121 | .num_bulk_in = 1, | 122 | .num_bulk_in = 1, |
122 | .num_bulk_out = 1, | 123 | .num_bulk_out = 1, |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 6986e756f7c0..35cad4249e51 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -615,6 +615,7 @@ static struct usb_serial_driver ftdi_sio_device = { | |||
615 | .name = "ftdi_sio", | 615 | .name = "ftdi_sio", |
616 | }, | 616 | }, |
617 | .description = "FTDI USB Serial Device", | 617 | .description = "FTDI USB Serial Device", |
618 | .usb_driver = &ftdi_driver , | ||
618 | .id_table = id_table_combined, | 619 | .id_table = id_table_combined, |
619 | .num_interrupt_in = 0, | 620 | .num_interrupt_in = 0, |
620 | .num_bulk_in = 1, | 621 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/funsoft.c b/drivers/usb/serial/funsoft.c index 2bebd63d5ed1..4092f6dc9efd 100644 --- a/drivers/usb/serial/funsoft.c +++ b/drivers/usb/serial/funsoft.c | |||
@@ -58,6 +58,7 @@ static struct usb_serial_driver funsoft_device = { | |||
58 | .name = "funsoft", | 58 | .name = "funsoft", |
59 | }, | 59 | }, |
60 | .id_table = id_table, | 60 | .id_table = id_table, |
61 | .usb_driver = &funsoft_driver, | ||
61 | .num_interrupt_in = NUM_DONT_CARE, | 62 | .num_interrupt_in = NUM_DONT_CARE, |
62 | .num_bulk_in = NUM_DONT_CARE, | 63 | .num_bulk_in = NUM_DONT_CARE, |
63 | .num_bulk_out = NUM_DONT_CARE, | 64 | .num_bulk_out = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index 6530d391ebed..74660a3aa670 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -1566,6 +1566,7 @@ static struct usb_serial_driver garmin_device = { | |||
1566 | .name = "garmin_gps", | 1566 | .name = "garmin_gps", |
1567 | }, | 1567 | }, |
1568 | .description = "Garmin GPS usb/tty", | 1568 | .description = "Garmin GPS usb/tty", |
1569 | .usb_driver = &garmin_driver, | ||
1569 | .id_table = id_table, | 1570 | .id_table = id_table, |
1570 | .num_interrupt_in = 1, | 1571 | .num_interrupt_in = 1, |
1571 | .num_bulk_in = 1, | 1572 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 36042937e77f..601e0648dec6 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -20,6 +20,10 @@ | |||
20 | #include <linux/usb/serial.h> | 20 | #include <linux/usb/serial.h> |
21 | #include <asm/uaccess.h> | 21 | #include <asm/uaccess.h> |
22 | 22 | ||
23 | static int generic_probe(struct usb_interface *interface, | ||
24 | const struct usb_device_id *id); | ||
25 | |||
26 | |||
23 | static int debug; | 27 | static int debug; |
24 | 28 | ||
25 | #ifdef CONFIG_USB_SERIAL_GENERIC | 29 | #ifdef CONFIG_USB_SERIAL_GENERIC |
@@ -34,6 +38,21 @@ MODULE_PARM_DESC(product, "User specified USB idProduct"); | |||
34 | 38 | ||
35 | static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */ | 39 | static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */ |
36 | 40 | ||
41 | /* we want to look at all devices, as the vendor/product id can change | ||
42 | * depending on the command line argument */ | ||
43 | static struct usb_device_id generic_serial_ids[] = { | ||
44 | {.driver_info = 42}, | ||
45 | {} | ||
46 | }; | ||
47 | |||
48 | static struct usb_driver generic_driver = { | ||
49 | .name = "usbserial_generic", | ||
50 | .probe = generic_probe, | ||
51 | .disconnect = usb_serial_disconnect, | ||
52 | .id_table = generic_serial_ids, | ||
53 | .no_dynamic_id = 1, | ||
54 | }; | ||
55 | |||
37 | /* All of the device info needed for the Generic Serial Converter */ | 56 | /* All of the device info needed for the Generic Serial Converter */ |
38 | struct usb_serial_driver usb_serial_generic_device = { | 57 | struct usb_serial_driver usb_serial_generic_device = { |
39 | .driver = { | 58 | .driver = { |
@@ -41,6 +60,7 @@ struct usb_serial_driver usb_serial_generic_device = { | |||
41 | .name = "generic", | 60 | .name = "generic", |
42 | }, | 61 | }, |
43 | .id_table = generic_device_ids, | 62 | .id_table = generic_device_ids, |
63 | .usb_driver = &generic_driver, | ||
44 | .num_interrupt_in = NUM_DONT_CARE, | 64 | .num_interrupt_in = NUM_DONT_CARE, |
45 | .num_bulk_in = NUM_DONT_CARE, | 65 | .num_bulk_in = NUM_DONT_CARE, |
46 | .num_bulk_out = NUM_DONT_CARE, | 66 | .num_bulk_out = NUM_DONT_CARE, |
@@ -48,13 +68,6 @@ struct usb_serial_driver usb_serial_generic_device = { | |||
48 | .shutdown = usb_serial_generic_shutdown, | 68 | .shutdown = usb_serial_generic_shutdown, |
49 | }; | 69 | }; |
50 | 70 | ||
51 | /* we want to look at all devices, as the vendor/product id can change | ||
52 | * depending on the command line argument */ | ||
53 | static struct usb_device_id generic_serial_ids[] = { | ||
54 | {.driver_info = 42}, | ||
55 | {} | ||
56 | }; | ||
57 | |||
58 | static int generic_probe(struct usb_interface *interface, | 71 | static int generic_probe(struct usb_interface *interface, |
59 | const struct usb_device_id *id) | 72 | const struct usb_device_id *id) |
60 | { | 73 | { |
@@ -65,14 +78,6 @@ static int generic_probe(struct usb_interface *interface, | |||
65 | return usb_serial_probe(interface, id); | 78 | return usb_serial_probe(interface, id); |
66 | return -ENODEV; | 79 | return -ENODEV; |
67 | } | 80 | } |
68 | |||
69 | static struct usb_driver generic_driver = { | ||
70 | .name = "usbserial_generic", | ||
71 | .probe = generic_probe, | ||
72 | .disconnect = usb_serial_disconnect, | ||
73 | .id_table = generic_serial_ids, | ||
74 | .no_dynamic_id = 1, | ||
75 | }; | ||
76 | #endif | 81 | #endif |
77 | 82 | ||
78 | int usb_serial_generic_register (int _debug) | 83 | int usb_serial_generic_register (int _debug) |
diff --git a/drivers/usb/serial/hp4x.c b/drivers/usb/serial/hp4x.c index ebcac701b069..6c6ebae741c9 100644 --- a/drivers/usb/serial/hp4x.c +++ b/drivers/usb/serial/hp4x.c | |||
@@ -49,6 +49,7 @@ static struct usb_serial_driver hp49gp_device = { | |||
49 | .name = "hp4X", | 49 | .name = "hp4X", |
50 | }, | 50 | }, |
51 | .id_table = id_table, | 51 | .id_table = id_table, |
52 | .usb_driver = &hp49gp_driver, | ||
52 | .num_interrupt_in = NUM_DONT_CARE, | 53 | .num_interrupt_in = NUM_DONT_CARE, |
53 | .num_bulk_in = NUM_DONT_CARE, | 54 | .num_bulk_in = NUM_DONT_CARE, |
54 | .num_bulk_out = NUM_DONT_CARE, | 55 | .num_bulk_out = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index cca1607857f7..6a26a2e683a6 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -242,14 +242,6 @@ static void edge_shutdown (struct usb_serial *serial); | |||
242 | 242 | ||
243 | #include "io_tables.h" /* all of the devices that this driver supports */ | 243 | #include "io_tables.h" /* all of the devices that this driver supports */ |
244 | 244 | ||
245 | static struct usb_driver io_driver = { | ||
246 | .name = "io_edgeport", | ||
247 | .probe = usb_serial_probe, | ||
248 | .disconnect = usb_serial_disconnect, | ||
249 | .id_table = id_table_combined, | ||
250 | .no_dynamic_id = 1, | ||
251 | }; | ||
252 | |||
253 | /* function prototypes for all of our local functions */ | 245 | /* function prototypes for all of our local functions */ |
254 | static void process_rcvd_data (struct edgeport_serial *edge_serial, unsigned char *buffer, __u16 bufferLength); | 246 | static void process_rcvd_data (struct edgeport_serial *edge_serial, unsigned char *buffer, __u16 bufferLength); |
255 | static void process_rcvd_status (struct edgeport_serial *edge_serial, __u8 byte2, __u8 byte3); | 247 | static void process_rcvd_status (struct edgeport_serial *edge_serial, __u8 byte2, __u8 byte3); |
diff --git a/drivers/usb/serial/io_tables.h b/drivers/usb/serial/io_tables.h index 3cbb8c19d925..6d3008772540 100644 --- a/drivers/usb/serial/io_tables.h +++ b/drivers/usb/serial/io_tables.h | |||
@@ -95,12 +95,21 @@ static struct usb_device_id id_table_combined [] = { | |||
95 | 95 | ||
96 | MODULE_DEVICE_TABLE (usb, id_table_combined); | 96 | MODULE_DEVICE_TABLE (usb, id_table_combined); |
97 | 97 | ||
98 | static struct usb_driver io_driver = { | ||
99 | .name = "io_edgeport", | ||
100 | .probe = usb_serial_probe, | ||
101 | .disconnect = usb_serial_disconnect, | ||
102 | .id_table = id_table_combined, | ||
103 | .no_dynamic_id = 1, | ||
104 | }; | ||
105 | |||
98 | static struct usb_serial_driver edgeport_2port_device = { | 106 | static struct usb_serial_driver edgeport_2port_device = { |
99 | .driver = { | 107 | .driver = { |
100 | .owner = THIS_MODULE, | 108 | .owner = THIS_MODULE, |
101 | .name = "edgeport_2", | 109 | .name = "edgeport_2", |
102 | }, | 110 | }, |
103 | .description = "Edgeport 2 port adapter", | 111 | .description = "Edgeport 2 port adapter", |
112 | .usb_driver = &io_driver, | ||
104 | .id_table = edgeport_2port_id_table, | 113 | .id_table = edgeport_2port_id_table, |
105 | .num_interrupt_in = 1, | 114 | .num_interrupt_in = 1, |
106 | .num_bulk_in = 1, | 115 | .num_bulk_in = 1, |
@@ -131,6 +140,7 @@ static struct usb_serial_driver edgeport_4port_device = { | |||
131 | .name = "edgeport_4", | 140 | .name = "edgeport_4", |
132 | }, | 141 | }, |
133 | .description = "Edgeport 4 port adapter", | 142 | .description = "Edgeport 4 port adapter", |
143 | .usb_driver = &io_driver, | ||
134 | .id_table = edgeport_4port_id_table, | 144 | .id_table = edgeport_4port_id_table, |
135 | .num_interrupt_in = 1, | 145 | .num_interrupt_in = 1, |
136 | .num_bulk_in = 1, | 146 | .num_bulk_in = 1, |
@@ -161,6 +171,7 @@ static struct usb_serial_driver edgeport_8port_device = { | |||
161 | .name = "edgeport_8", | 171 | .name = "edgeport_8", |
162 | }, | 172 | }, |
163 | .description = "Edgeport 8 port adapter", | 173 | .description = "Edgeport 8 port adapter", |
174 | .usb_driver = &io_driver, | ||
164 | .id_table = edgeport_8port_id_table, | 175 | .id_table = edgeport_8port_id_table, |
165 | .num_interrupt_in = 1, | 176 | .num_interrupt_in = 1, |
166 | .num_bulk_in = 1, | 177 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 980285c0233a..544098d2b775 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -2979,6 +2979,7 @@ static struct usb_serial_driver edgeport_1port_device = { | |||
2979 | .name = "edgeport_ti_1", | 2979 | .name = "edgeport_ti_1", |
2980 | }, | 2980 | }, |
2981 | .description = "Edgeport TI 1 port adapter", | 2981 | .description = "Edgeport TI 1 port adapter", |
2982 | .usb_driver = &io_driver, | ||
2982 | .id_table = edgeport_1port_id_table, | 2983 | .id_table = edgeport_1port_id_table, |
2983 | .num_interrupt_in = 1, | 2984 | .num_interrupt_in = 1, |
2984 | .num_bulk_in = 1, | 2985 | .num_bulk_in = 1, |
@@ -3009,6 +3010,7 @@ static struct usb_serial_driver edgeport_2port_device = { | |||
3009 | .name = "edgeport_ti_2", | 3010 | .name = "edgeport_ti_2", |
3010 | }, | 3011 | }, |
3011 | .description = "Edgeport TI 2 port adapter", | 3012 | .description = "Edgeport TI 2 port adapter", |
3013 | .usb_driver = &io_driver, | ||
3012 | .id_table = edgeport_2port_id_table, | 3014 | .id_table = edgeport_2port_id_table, |
3013 | .num_interrupt_in = 1, | 3015 | .num_interrupt_in = 1, |
3014 | .num_bulk_in = 2, | 3016 | .num_bulk_in = 2, |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 42f757a5b876..a408184334ea 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -563,6 +563,7 @@ static struct usb_serial_driver ipaq_device = { | |||
563 | .name = "ipaq", | 563 | .name = "ipaq", |
564 | }, | 564 | }, |
565 | .description = "PocketPC PDA", | 565 | .description = "PocketPC PDA", |
566 | .usb_driver = &ipaq_driver, | ||
566 | .id_table = ipaq_id_table, | 567 | .id_table = ipaq_id_table, |
567 | .num_interrupt_in = NUM_DONT_CARE, | 568 | .num_interrupt_in = NUM_DONT_CARE, |
568 | .num_bulk_in = 1, | 569 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index d3b9a351cef8..1bc586064c77 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -442,6 +442,7 @@ static struct usb_serial_driver ipw_device = { | |||
442 | .name = "ipw", | 442 | .name = "ipw", |
443 | }, | 443 | }, |
444 | .description = "IPWireless converter", | 444 | .description = "IPWireless converter", |
445 | .usb_driver = &usb_ipw_driver, | ||
445 | .id_table = usb_ipw_ids, | 446 | .id_table = usb_ipw_ids, |
446 | .num_interrupt_in = NUM_DONT_CARE, | 447 | .num_interrupt_in = NUM_DONT_CARE, |
447 | .num_bulk_in = 1, | 448 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 8fdf486e3465..9d847f69291c 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -138,6 +138,7 @@ static struct usb_serial_driver ir_device = { | |||
138 | .name = "ir-usb", | 138 | .name = "ir-usb", |
139 | }, | 139 | }, |
140 | .description = "IR Dongle", | 140 | .description = "IR Dongle", |
141 | .usb_driver = &ir_driver, | ||
141 | .id_table = id_table, | 142 | .id_table = id_table, |
142 | .num_interrupt_in = 1, | 143 | .num_interrupt_in = 1, |
143 | .num_bulk_in = 1, | 144 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h index 6413d73c139c..2dc8964916f1 100644 --- a/drivers/usb/serial/keyspan.h +++ b/drivers/usb/serial/keyspan.h | |||
@@ -576,6 +576,7 @@ static struct usb_serial_driver keyspan_pre_device = { | |||
576 | .name = "keyspan_no_firm", | 576 | .name = "keyspan_no_firm", |
577 | }, | 577 | }, |
578 | .description = "Keyspan - (without firmware)", | 578 | .description = "Keyspan - (without firmware)", |
579 | .usb_driver = &keyspan_driver, | ||
579 | .id_table = keyspan_pre_ids, | 580 | .id_table = keyspan_pre_ids, |
580 | .num_interrupt_in = NUM_DONT_CARE, | 581 | .num_interrupt_in = NUM_DONT_CARE, |
581 | .num_bulk_in = NUM_DONT_CARE, | 582 | .num_bulk_in = NUM_DONT_CARE, |
@@ -590,6 +591,7 @@ static struct usb_serial_driver keyspan_1port_device = { | |||
590 | .name = "keyspan_1", | 591 | .name = "keyspan_1", |
591 | }, | 592 | }, |
592 | .description = "Keyspan 1 port adapter", | 593 | .description = "Keyspan 1 port adapter", |
594 | .usb_driver = &keyspan_driver, | ||
593 | .id_table = keyspan_1port_ids, | 595 | .id_table = keyspan_1port_ids, |
594 | .num_interrupt_in = NUM_DONT_CARE, | 596 | .num_interrupt_in = NUM_DONT_CARE, |
595 | .num_bulk_in = NUM_DONT_CARE, | 597 | .num_bulk_in = NUM_DONT_CARE, |
@@ -617,6 +619,7 @@ static struct usb_serial_driver keyspan_2port_device = { | |||
617 | .name = "keyspan_2", | 619 | .name = "keyspan_2", |
618 | }, | 620 | }, |
619 | .description = "Keyspan 2 port adapter", | 621 | .description = "Keyspan 2 port adapter", |
622 | .usb_driver = &keyspan_driver, | ||
620 | .id_table = keyspan_2port_ids, | 623 | .id_table = keyspan_2port_ids, |
621 | .num_interrupt_in = NUM_DONT_CARE, | 624 | .num_interrupt_in = NUM_DONT_CARE, |
622 | .num_bulk_in = NUM_DONT_CARE, | 625 | .num_bulk_in = NUM_DONT_CARE, |
@@ -644,6 +647,7 @@ static struct usb_serial_driver keyspan_4port_device = { | |||
644 | .name = "keyspan_4", | 647 | .name = "keyspan_4", |
645 | }, | 648 | }, |
646 | .description = "Keyspan 4 port adapter", | 649 | .description = "Keyspan 4 port adapter", |
650 | .usb_driver = &keyspan_driver, | ||
647 | .id_table = keyspan_4port_ids, | 651 | .id_table = keyspan_4port_ids, |
648 | .num_interrupt_in = NUM_DONT_CARE, | 652 | .num_interrupt_in = NUM_DONT_CARE, |
649 | .num_bulk_in = 5, | 653 | .num_bulk_in = 5, |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 126b9703bbaf..da514cb785b3 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -793,6 +793,7 @@ static struct usb_serial_driver keyspan_pda_fake_device = { | |||
793 | .name = "keyspan_pda_pre", | 793 | .name = "keyspan_pda_pre", |
794 | }, | 794 | }, |
795 | .description = "Keyspan PDA - (prerenumeration)", | 795 | .description = "Keyspan PDA - (prerenumeration)", |
796 | .usb_driver = &keyspan_pda_driver, | ||
796 | .id_table = id_table_fake, | 797 | .id_table = id_table_fake, |
797 | .num_interrupt_in = NUM_DONT_CARE, | 798 | .num_interrupt_in = NUM_DONT_CARE, |
798 | .num_bulk_in = NUM_DONT_CARE, | 799 | .num_bulk_in = NUM_DONT_CARE, |
@@ -809,6 +810,7 @@ static struct usb_serial_driver xircom_pgs_fake_device = { | |||
809 | .name = "xircom_no_firm", | 810 | .name = "xircom_no_firm", |
810 | }, | 811 | }, |
811 | .description = "Xircom / Entregra PGS - (prerenumeration)", | 812 | .description = "Xircom / Entregra PGS - (prerenumeration)", |
813 | .usb_driver = &keyspan_pda_driver, | ||
812 | .id_table = id_table_fake_xircom, | 814 | .id_table = id_table_fake_xircom, |
813 | .num_interrupt_in = NUM_DONT_CARE, | 815 | .num_interrupt_in = NUM_DONT_CARE, |
814 | .num_bulk_in = NUM_DONT_CARE, | 816 | .num_bulk_in = NUM_DONT_CARE, |
@@ -824,6 +826,7 @@ static struct usb_serial_driver keyspan_pda_device = { | |||
824 | .name = "keyspan_pda", | 826 | .name = "keyspan_pda", |
825 | }, | 827 | }, |
826 | .description = "Keyspan PDA", | 828 | .description = "Keyspan PDA", |
829 | .usb_driver = &keyspan_pda_driver, | ||
827 | .id_table = id_table_std, | 830 | .id_table = id_table_std, |
828 | .num_interrupt_in = 1, | 831 | .num_interrupt_in = 1, |
829 | .num_bulk_in = 0, | 832 | .num_bulk_in = 0, |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 5c4b06a99ac0..b2097c45a235 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -124,6 +124,7 @@ static struct usb_serial_driver kl5kusb105d_device = { | |||
124 | .name = "kl5kusb105d", | 124 | .name = "kl5kusb105d", |
125 | }, | 125 | }, |
126 | .description = "KL5KUSB105D / PalmConnect", | 126 | .description = "KL5KUSB105D / PalmConnect", |
127 | .usb_driver = &kl5kusb105d_driver, | ||
127 | .id_table = id_table, | 128 | .id_table = id_table, |
128 | .num_interrupt_in = 1, | 129 | .num_interrupt_in = 1, |
129 | .num_bulk_in = 1, | 130 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 62bea0c923bd..0683b51f0932 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -110,6 +110,7 @@ static struct usb_serial_driver kobil_device = { | |||
110 | .name = "kobil", | 110 | .name = "kobil", |
111 | }, | 111 | }, |
112 | .description = "KOBIL USB smart card terminal", | 112 | .description = "KOBIL USB smart card terminal", |
113 | .usb_driver = &kobil_driver, | ||
113 | .id_table = id_table, | 114 | .id_table = id_table, |
114 | .num_interrupt_in = NUM_DONT_CARE, | 115 | .num_interrupt_in = NUM_DONT_CARE, |
115 | .num_bulk_in = 0, | 116 | .num_bulk_in = 0, |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 38b1d17e06ef..4cd839b1407f 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -137,6 +137,7 @@ static struct usb_serial_driver mct_u232_device = { | |||
137 | .name = "mct_u232", | 137 | .name = "mct_u232", |
138 | }, | 138 | }, |
139 | .description = "MCT U232", | 139 | .description = "MCT U232", |
140 | .usb_driver = &mct_u232_driver, | ||
140 | .id_table = id_table_combined, | 141 | .id_table = id_table_combined, |
141 | .num_interrupt_in = 2, | 142 | .num_interrupt_in = 2, |
142 | .num_bulk_in = 0, | 143 | .num_bulk_in = 0, |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index e55f4ed81d7b..6109c6704a73 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1605,12 +1605,21 @@ static void mos7720_shutdown(struct usb_serial *serial) | |||
1605 | usb_set_serial_data(serial, NULL); | 1605 | usb_set_serial_data(serial, NULL); |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | static struct usb_driver usb_driver = { | ||
1609 | .name = "moschip7720", | ||
1610 | .probe = usb_serial_probe, | ||
1611 | .disconnect = usb_serial_disconnect, | ||
1612 | .id_table = moschip_port_id_table, | ||
1613 | .no_dynamic_id = 1, | ||
1614 | }; | ||
1615 | |||
1608 | static struct usb_serial_driver moschip7720_2port_driver = { | 1616 | static struct usb_serial_driver moschip7720_2port_driver = { |
1609 | .driver = { | 1617 | .driver = { |
1610 | .owner = THIS_MODULE, | 1618 | .owner = THIS_MODULE, |
1611 | .name = "moschip7720", | 1619 | .name = "moschip7720", |
1612 | }, | 1620 | }, |
1613 | .description = "Moschip 2 port adapter", | 1621 | .description = "Moschip 2 port adapter", |
1622 | .usb_driver = &usb_driver, | ||
1614 | .id_table = moschip_port_id_table, | 1623 | .id_table = moschip_port_id_table, |
1615 | .num_interrupt_in = 1, | 1624 | .num_interrupt_in = 1, |
1616 | .num_bulk_in = 2, | 1625 | .num_bulk_in = 2, |
@@ -1631,13 +1640,6 @@ static struct usb_serial_driver moschip7720_2port_driver = { | |||
1631 | .read_bulk_callback = mos7720_bulk_in_callback, | 1640 | .read_bulk_callback = mos7720_bulk_in_callback, |
1632 | }; | 1641 | }; |
1633 | 1642 | ||
1634 | static struct usb_driver usb_driver = { | ||
1635 | .name = "moschip7720", | ||
1636 | .probe = usb_serial_probe, | ||
1637 | .disconnect = usb_serial_disconnect, | ||
1638 | .id_table = moschip_port_id_table, | ||
1639 | }; | ||
1640 | |||
1641 | static int __init moschip7720_init(void) | 1643 | static int __init moschip7720_init(void) |
1642 | { | 1644 | { |
1643 | int retval; | 1645 | int retval; |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 83f661403ba1..b2264a87617b 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -2834,12 +2834,21 @@ static void mos7840_shutdown(struct usb_serial *serial) | |||
2834 | 2834 | ||
2835 | } | 2835 | } |
2836 | 2836 | ||
2837 | static struct usb_driver io_driver = { | ||
2838 | .name = "mos7840", | ||
2839 | .probe = usb_serial_probe, | ||
2840 | .disconnect = usb_serial_disconnect, | ||
2841 | .id_table = moschip_id_table_combined, | ||
2842 | .no_dynamic_id = 1, | ||
2843 | }; | ||
2844 | |||
2837 | static struct usb_serial_driver moschip7840_4port_device = { | 2845 | static struct usb_serial_driver moschip7840_4port_device = { |
2838 | .driver = { | 2846 | .driver = { |
2839 | .owner = THIS_MODULE, | 2847 | .owner = THIS_MODULE, |
2840 | .name = "mos7840", | 2848 | .name = "mos7840", |
2841 | }, | 2849 | }, |
2842 | .description = DRIVER_DESC, | 2850 | .description = DRIVER_DESC, |
2851 | .usb_driver = &io_driver, | ||
2843 | .id_table = moschip_port_id_table, | 2852 | .id_table = moschip_port_id_table, |
2844 | .num_interrupt_in = 1, //NUM_DONT_CARE,//1, | 2853 | .num_interrupt_in = 1, //NUM_DONT_CARE,//1, |
2845 | #ifdef check | 2854 | #ifdef check |
@@ -2869,13 +2878,6 @@ static struct usb_serial_driver moschip7840_4port_device = { | |||
2869 | .read_int_callback = mos7840_interrupt_callback, | 2878 | .read_int_callback = mos7840_interrupt_callback, |
2870 | }; | 2879 | }; |
2871 | 2880 | ||
2872 | static struct usb_driver io_driver = { | ||
2873 | .name = "mos7840", | ||
2874 | .probe = usb_serial_probe, | ||
2875 | .disconnect = usb_serial_disconnect, | ||
2876 | .id_table = moschip_id_table_combined, | ||
2877 | }; | ||
2878 | |||
2879 | /**************************************************************************** | 2881 | /**************************************************************************** |
2880 | * moschip7840_init | 2882 | * moschip7840_init |
2881 | * This is called by the module subsystem, or on startup to initialize us | 2883 | * This is called by the module subsystem, or on startup to initialize us |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 054abee81652..90701111d746 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -119,6 +119,7 @@ static struct usb_serial_driver navman_device = { | |||
119 | .name = "navman", | 119 | .name = "navman", |
120 | }, | 120 | }, |
121 | .id_table = id_table, | 121 | .id_table = id_table, |
122 | .usb_driver = &navman_driver, | ||
122 | .num_interrupt_in = NUM_DONT_CARE, | 123 | .num_interrupt_in = NUM_DONT_CARE, |
123 | .num_bulk_in = NUM_DONT_CARE, | 124 | .num_bulk_in = NUM_DONT_CARE, |
124 | .num_bulk_out = NUM_DONT_CARE, | 125 | .num_bulk_out = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index bc91d3b726fc..0216ac12a27d 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -93,6 +93,7 @@ static struct usb_serial_driver zyxel_omninet_device = { | |||
93 | .name = "omninet", | 93 | .name = "omninet", |
94 | }, | 94 | }, |
95 | .description = "ZyXEL - omni.net lcd plus usb", | 95 | .description = "ZyXEL - omni.net lcd plus usb", |
96 | .usb_driver = &omninet_driver, | ||
96 | .id_table = id_table, | 97 | .id_table = id_table, |
97 | .num_interrupt_in = 1, | 98 | .num_interrupt_in = 1, |
98 | .num_bulk_in = 1, | 99 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 0fed43a96871..ced9f32b29d9 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -135,6 +135,7 @@ static struct usb_serial_driver option_1port_device = { | |||
135 | .name = "option1", | 135 | .name = "option1", |
136 | }, | 136 | }, |
137 | .description = "GSM modem (1-port)", | 137 | .description = "GSM modem (1-port)", |
138 | .usb_driver = &option_driver, | ||
138 | .id_table = option_ids1, | 139 | .id_table = option_ids1, |
139 | .num_interrupt_in = NUM_DONT_CARE, | 140 | .num_interrupt_in = NUM_DONT_CARE, |
140 | .num_bulk_in = NUM_DONT_CARE, | 141 | .num_bulk_in = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 5dc2ac9afa90..6c083d4e2c9b 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -1118,6 +1118,7 @@ static struct usb_serial_driver pl2303_device = { | |||
1118 | .name = "pl2303", | 1118 | .name = "pl2303", |
1119 | }, | 1119 | }, |
1120 | .id_table = id_table, | 1120 | .id_table = id_table, |
1121 | .usb_driver = &pl2303_driver, | ||
1121 | .num_interrupt_in = NUM_DONT_CARE, | 1122 | .num_interrupt_in = NUM_DONT_CARE, |
1122 | .num_bulk_in = 1, | 1123 | .num_bulk_in = 1, |
1123 | .num_bulk_out = 1, | 1124 | .num_bulk_out = 1, |
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index 30b7ebc8d45d..5a03a3fc9386 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
@@ -402,6 +402,7 @@ static struct usb_serial_driver safe_device = { | |||
402 | .name = "safe_serial", | 402 | .name = "safe_serial", |
403 | }, | 403 | }, |
404 | .id_table = id_table, | 404 | .id_table = id_table, |
405 | .usb_driver = &safe_driver, | ||
405 | .num_interrupt_in = NUM_DONT_CARE, | 406 | .num_interrupt_in = NUM_DONT_CARE, |
406 | .num_bulk_in = NUM_DONT_CARE, | 407 | .num_bulk_in = NUM_DONT_CARE, |
407 | .num_bulk_out = NUM_DONT_CARE, | 408 | .num_bulk_out = NUM_DONT_CARE, |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 6d8e91e00ecf..8aca8a707a3f 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -614,6 +614,7 @@ static struct usb_serial_driver sierra_1port_device = { | |||
614 | }, | 614 | }, |
615 | .description = "Sierra USB modem (1 port)", | 615 | .description = "Sierra USB modem (1 port)", |
616 | .id_table = id_table_1port, | 616 | .id_table = id_table_1port, |
617 | .usb_driver = &sierra_driver, | ||
617 | .num_interrupt_in = NUM_DONT_CARE, | 618 | .num_interrupt_in = NUM_DONT_CARE, |
618 | .num_bulk_in = 1, | 619 | .num_bulk_in = 1, |
619 | .num_bulk_out = 1, | 620 | .num_bulk_out = 1, |
@@ -642,6 +643,7 @@ static struct usb_serial_driver sierra_3port_device = { | |||
642 | }, | 643 | }, |
643 | .description = "Sierra USB modem (3 port)", | 644 | .description = "Sierra USB modem (3 port)", |
644 | .id_table = id_table_3port, | 645 | .id_table = id_table_3port, |
646 | .usb_driver = &sierra_driver, | ||
645 | .num_interrupt_in = NUM_DONT_CARE, | 647 | .num_interrupt_in = NUM_DONT_CARE, |
646 | .num_bulk_in = 3, | 648 | .num_bulk_in = 3, |
647 | .num_bulk_out = 3, | 649 | .num_bulk_out = 3, |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 83189005c6fb..4203e2b1a761 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -262,6 +262,7 @@ static struct usb_serial_driver ti_1port_device = { | |||
262 | .name = "ti_usb_3410_5052_1", | 262 | .name = "ti_usb_3410_5052_1", |
263 | }, | 263 | }, |
264 | .description = "TI USB 3410 1 port adapter", | 264 | .description = "TI USB 3410 1 port adapter", |
265 | .usb_driver = &ti_usb_driver, | ||
265 | .id_table = ti_id_table_3410, | 266 | .id_table = ti_id_table_3410, |
266 | .num_interrupt_in = 1, | 267 | .num_interrupt_in = 1, |
267 | .num_bulk_in = 1, | 268 | .num_bulk_in = 1, |
@@ -292,6 +293,7 @@ static struct usb_serial_driver ti_2port_device = { | |||
292 | .name = "ti_usb_3410_5052_2", | 293 | .name = "ti_usb_3410_5052_2", |
293 | }, | 294 | }, |
294 | .description = "TI USB 5052 2 port adapter", | 295 | .description = "TI USB 5052 2 port adapter", |
296 | .usb_driver = &ti_usb_driver, | ||
295 | .id_table = ti_id_table_5052, | 297 | .id_table = ti_id_table_5052, |
296 | .num_interrupt_in = 1, | 298 | .num_interrupt_in = 1, |
297 | .num_bulk_in = 2, | 299 | .num_bulk_in = 2, |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index b09f06096056..02cd6f7a2d6b 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -189,6 +189,7 @@ static struct usb_serial_driver handspring_device = { | |||
189 | .name = "visor", | 189 | .name = "visor", |
190 | }, | 190 | }, |
191 | .description = "Handspring Visor / Palm OS", | 191 | .description = "Handspring Visor / Palm OS", |
192 | .usb_driver = &visor_driver, | ||
192 | .id_table = id_table, | 193 | .id_table = id_table, |
193 | .num_interrupt_in = NUM_DONT_CARE, | 194 | .num_interrupt_in = NUM_DONT_CARE, |
194 | .num_bulk_in = 2, | 195 | .num_bulk_in = 2, |
@@ -219,6 +220,7 @@ static struct usb_serial_driver clie_5_device = { | |||
219 | .name = "clie_5", | 220 | .name = "clie_5", |
220 | }, | 221 | }, |
221 | .description = "Sony Clie 5.0", | 222 | .description = "Sony Clie 5.0", |
223 | .usb_driver = &visor_driver, | ||
222 | .id_table = clie_id_5_table, | 224 | .id_table = clie_id_5_table, |
223 | .num_interrupt_in = NUM_DONT_CARE, | 225 | .num_interrupt_in = NUM_DONT_CARE, |
224 | .num_bulk_in = 2, | 226 | .num_bulk_in = 2, |
@@ -249,6 +251,7 @@ static struct usb_serial_driver clie_3_5_device = { | |||
249 | .name = "clie_3.5", | 251 | .name = "clie_3.5", |
250 | }, | 252 | }, |
251 | .description = "Sony Clie 3.5", | 253 | .description = "Sony Clie 3.5", |
254 | .usb_driver = &visor_driver, | ||
252 | .id_table = clie_id_3_5_table, | 255 | .id_table = clie_id_3_5_table, |
253 | .num_interrupt_in = 0, | 256 | .num_interrupt_in = 0, |
254 | .num_bulk_in = 1, | 257 | .num_bulk_in = 1, |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 5483d8564c1b..bf16e9e1d84e 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -161,6 +161,7 @@ static struct usb_serial_driver whiteheat_fake_device = { | |||
161 | .name = "whiteheatnofirm", | 161 | .name = "whiteheatnofirm", |
162 | }, | 162 | }, |
163 | .description = "Connect Tech - WhiteHEAT - (prerenumeration)", | 163 | .description = "Connect Tech - WhiteHEAT - (prerenumeration)", |
164 | .usb_driver = &whiteheat_driver, | ||
164 | .id_table = id_table_prerenumeration, | 165 | .id_table = id_table_prerenumeration, |
165 | .num_interrupt_in = NUM_DONT_CARE, | 166 | .num_interrupt_in = NUM_DONT_CARE, |
166 | .num_bulk_in = NUM_DONT_CARE, | 167 | .num_bulk_in = NUM_DONT_CARE, |
@@ -176,6 +177,7 @@ static struct usb_serial_driver whiteheat_device = { | |||
176 | .name = "whiteheat", | 177 | .name = "whiteheat", |
177 | }, | 178 | }, |
178 | .description = "Connect Tech - WhiteHEAT", | 179 | .description = "Connect Tech - WhiteHEAT", |
180 | .usb_driver = &whiteheat_driver, | ||
179 | .id_table = id_table_std, | 181 | .id_table = id_table_std, |
180 | .num_interrupt_in = NUM_DONT_CARE, | 182 | .num_interrupt_in = NUM_DONT_CARE, |
181 | .num_bulk_in = NUM_DONT_CARE, | 183 | .num_bulk_in = NUM_DONT_CARE, |