Commit c744f99e authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

USB: fix usb-serial device naming bug

Am Montag, 26. Februar 2007 15:16 schrieb Craig Schlenter:
> Hi Greg
> 
> 34ef50e5 is definitely
> the source of the problem. Reverting that makes the
> ftdi port show up as ttyUSB0 again for me and it
> can actually be opened.

This patch should fix the issue.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarCraig Schlenter <craig@codefountain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cf0cb1ae
...@@ -827,7 +827,6 @@ int usb_serial_probe(struct usb_interface *interface, ...@@ -827,7 +827,6 @@ int usb_serial_probe(struct usb_interface *interface,
num_ports = type->num_ports; num_ports = type->num_ports;
} }
serial->minor = minor;
serial->num_ports = num_ports; serial->num_ports = num_ports;
serial->num_bulk_in = num_bulk_in; serial->num_bulk_in = num_bulk_in;
serial->num_bulk_out = num_bulk_out; serial->num_bulk_out = num_bulk_out;
...@@ -981,6 +980,7 @@ int usb_serial_probe(struct usb_interface *interface, ...@@ -981,6 +980,7 @@ int usb_serial_probe(struct usb_interface *interface,
dev_err(&interface->dev, "No more free serial devices\n"); dev_err(&interface->dev, "No more free serial devices\n");
goto probe_error; goto probe_error;
} }
serial->minor = minor;
/* register all of the individual ports with the driver core */ /* register all of the individual ports with the driver core */
for (i = 0; i < num_ports; ++i) { for (i = 0; i < num_ports; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment