提交 c744f99e 编写于 作者: O Oliver Neukum 提交者: 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: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NCraig Schlenter <craig@codefountain.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cf0cb1ae
......@@ -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;
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册