projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
791b7d7
)
USB: cp210x: call generic open last in open
author
Johan Hovold
<
[email protected]
>
Sun, 15 Jan 2012 23:36:48 +0000
(
00:36
+0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 24 Jan 2012 19:37:53 +0000
(11:37 -0800)
Make sure port is fully initialised before calling generic open.
Signed-off-by: Johan Hovold <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/serial/cp210x.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/cp210x.c
b/drivers/usb/serial/cp210x.c
index c2b5d4a09b162620ed346238790d0ee5e9a57985..bb4290bfe59dba128b0f47d7c8be7dd7997eecc9 100644
(file)
--- a/
drivers/usb/serial/cp210x.c
+++ b/
drivers/usb/serial/cp210x.c
@@
-410,13
+410,10
@@
static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port)
return result;
}
- result = usb_serial_generic_open(tty, port);
- if (result)
- return result;
-
/* Configure the termios structure */
cp210x_get_termios(tty, port);
- return 0;
+
+ return usb_serial_generic_open(tty, port);
}
static void cp210x_close(struct usb_serial_port *port)