aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/pl2303.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-11-06 13:06:36 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 13:43:46 -0500
commitf5230a53c1d551811b077ccad219105786da1bec (patch)
treefb8e97ab157cf8d26dca21741145bbf1427e6716 /drivers/usb/serial/pl2303.c
parentd4691c3fa3d371835b1eacb39066ab113c4b9d8c (diff)
USB: pl2303: use usb_serial_generic_open
Use generic open rather than calling usb_serial_submit_read_urb directly. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r--drivers/usb/serial/pl2303.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 9fdc944ff48d..56aa1e6cc380 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -511,7 +511,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
511 return result; 511 return result;
512 } 512 }
513 513
514 result = usb_serial_generic_submit_read_urb(port, GFP_KERNEL); 514 result = usb_serial_generic_open(tty, port);
515 if (result) { 515 if (result) {
516 usb_kill_urb(port->interrupt_in_urb); 516 usb_kill_urb(port->interrupt_in_urb);
517 return result; 517 return result;