USB: fix usb-serial device naming bug

Am Montag, 26. Februar 2007 15:16 schrieb Craig Schlenter:
> Hi Greg
>
> 34ef50e5b1f96c2d8c0f3d28b7d407743806256c 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>

authored by Oliver Neukum and committed by Greg Kroah-Hartman c744f99e cf0cb1ae

+1 -1
+1 -1
drivers/usb/serial/usb-serial.c
··· 827 num_ports = type->num_ports; 828 } 829 830 - serial->minor = minor; 831 serial->num_ports = num_ports; 832 serial->num_bulk_in = num_bulk_in; 833 serial->num_bulk_out = num_bulk_out; ··· 980 dev_err(&interface->dev, "No more free serial devices\n"); 981 goto probe_error; 982 } 983 984 /* register all of the individual ports with the driver core */ 985 for (i = 0; i < num_ports; ++i) {
··· 827 num_ports = type->num_ports; 828 } 829 830 serial->num_ports = num_ports; 831 serial->num_bulk_in = num_bulk_in; 832 serial->num_bulk_out = num_bulk_out; ··· 981 dev_err(&interface->dev, "No more free serial devices\n"); 982 goto probe_error; 983 } 984 + serial->minor = minor; 985 986 /* register all of the individual ports with the driver core */ 987 for (i = 0; i < num_ports; ++i) {