Skip to content

Commit

Permalink
USB: fix usb-serial device naming bug
Browse files Browse the repository at this point in the history
Am Montag, 26. Februar 2007 15:16 schrieb Craig Schlenter:
> Hi Greg
> 
> 34ef50e 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: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Craig Schlenter <craig@codefountain.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 10, 2007
1 parent cf0cb1a commit c744f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,6 @@ int usb_serial_probe(struct usb_interface *interface,
num_ports = type->num_ports;
}

serial->minor = minor;
serial->num_ports = num_ports;
serial->num_bulk_in = num_bulk_in;
serial->num_bulk_out = num_bulk_out;
Expand Down Expand Up @@ -981,6 +980,7 @@ int usb_serial_probe(struct usb_interface *interface,
dev_err(&interface->dev, "No more free serial devices\n");
goto probe_error;
}
serial->minor = minor;

/* register all of the individual ports with the driver core */
for (i = 0; i < num_ports; ++i) {
Expand Down

0 comments on commit c744f99

Please sign in to comment.