提交 f5230a53 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: pl2303: use usb_serial_generic_open

Use generic open rather than calling usb_serial_submit_read_urb
directly.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d4691c3f
......@@ -511,7 +511,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
return result;
}
result = usb_serial_generic_submit_read_urb(port, GFP_KERNEL);
result = usb_serial_generic_open(tty, port);
if (result) {
usb_kill_urb(port->interrupt_in_urb);
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册