USB: Bugfix for aircable: Add module and name to usb_serial_driver
authorJohannes Hölzl <johannes.hoelzl@gmx.de>
Sun, 17 Dec 2006 21:05:09 +0000 (22:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:34 +0000 (15:44 -0800)
While adding the dynamic-id support to usb serial I found a small bug in
the air cable driver:

Adds module and name information to the usb_serial_driver instance
of aircable. So the aircable driver is correctly shown under
/sys/bus/usb-serial/drivers/aircable and has the module link.

Signed-off-by: Johannes Hölzl <johannes.hoelzl@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/aircable.c

index 46c856a187a295ceb193c486c9d01586919ca5d3..11dad42c3c6018753aaafe316154594aec417cbc 100644 (file)
@@ -581,7 +581,10 @@ static struct usb_driver aircable_driver = {
 };
 
 static struct usb_serial_driver aircable_device = {
-       .description =          "aircable",
+       .driver = {
+               .owner =        THIS_MODULE,
+               .name =         "aircable",
+       },
        .usb_driver =           &aircable_driver,
        .id_table =             id_table,
        .num_ports =            1,