Skip to content

Commit

Permalink
USB: Bugfix for aircable: Add module and name to usb_serial_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Hölzl authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent d9b1b78 commit 52d67f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/serial/aircable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52d67f0

Please sign in to comment.