From: Jiri Slaby Date: Mon, 5 Mar 2012 13:51:48 +0000 (+0100) Subject: USB: cdc-acm, use tty_standard_install X-Git-Tag: upstream/snapshot3+hdmi~7962^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8a8c10f4a662dcf3cb621d7a3eba564c5963284;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Oliver Neukum Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 9543b19..11a1130 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) 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: