Skip to content

Commit f5230a5

Browse files
jhovoldgregkh
authored andcommitted
USB: pl2303: use usb_serial_generic_open
Use generic open rather than calling usb_serial_submit_read_urb directly. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d4691c3 commit f5230a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/serial/pl2303.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
511511
return result;
512512
}
513513

514-
result = usb_serial_generic_submit_read_urb(port, GFP_KERNEL);
514+
result = usb_serial_generic_open(tty, port);
515515
if (result) {
516516
usb_kill_urb(port->interrupt_in_urb);
517517
return result;

0 commit comments

Comments
 (0)