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:
5289475
)
USB: cdc-acm, use tty_standard_install
author
Jiri Slaby
<
[email protected]
>
Mon, 5 Mar 2012 13:51:48 +0000
(14:51 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 8 Mar 2012 19:30:21 +0000
(11:30 -0800)
This is a piece I missed the last time.
Do not copy the functionality all over the tree. Instead, use the
helper the tty layer provides us with.
Signed-off-by: Jiri Slaby <
[email protected]
>
Acked-by: Oliver Neukum <
[email protected]
>
Acked-by: Alan Cox <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/class/cdc-acm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-acm.c
b/drivers/usb/class/cdc-acm.c
index 9543b19d410cabeef4a96dc57cf235b3b1cab49d..11a1130319d161c1873eafdc72c317bb42c46200 100644
(file)
--- a/
drivers/usb/class/cdc-acm.c
+++ b/
drivers/usb/class/cdc-acm.c
@@
-508,17
+508,12
@@
static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
if (!acm)
return -ENODEV;
- retval = tty_
init_termios(
tty);
+ retval = tty_
standard_install(driver,
tty);
if (retval)
goto error_init_termios;
tty->driver_data = acm;
- /* Final install (we use the default method) */
- tty_driver_kref_get(driver);
- tty->count++;
- driver->ttys[tty->index] = tty;
-
return 0;
error_init_termios: