diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:51:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 14:30:21 -0500 |
commit | f8a8c10f4a662dcf3cb621d7a3eba564c5963284 (patch) | |
tree | e9f5b47549a2a6c838921eeee5ea6bbd484106a7 /drivers/usb/class | |
parent | 5289475d1375017ab4288b276383e9684280876d (diff) |
USB: cdc-acm, use tty_standard_install
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 <jslaby@suse.cz>
Acked-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 9543b19d410c..11a1130319d1 100644 --- 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) | |||
508 | if (!acm) | 508 | if (!acm) |
509 | return -ENODEV; | 509 | return -ENODEV; |
510 | 510 | ||
511 | retval = tty_init_termios(tty); | 511 | retval = tty_standard_install(driver, tty); |
512 | if (retval) | 512 | if (retval) |
513 | goto error_init_termios; | 513 | goto error_init_termios; |
514 | 514 | ||
515 | tty->driver_data = acm; | 515 | tty->driver_data = acm; |
516 | 516 | ||
517 | /* Final install (we use the default method) */ | ||
518 | tty_driver_kref_get(driver); | ||
519 | tty->count++; | ||
520 | driver->ttys[tty->index] = tty; | ||
521 | |||
522 | return 0; | 517 | return 0; |
523 | 518 | ||
524 | error_init_termios: | 519 | error_init_termios: |