staging: dgnc: use tty_alloc_driver instead of kcalloc
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 14 Apr 2016 03:30:13 +0000 (12:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:46:00 +0000 (17:46 -0700)
commit60b3109e5e2d93af6a61c7caf10f1009584cee30
tree17adbb8560f51ce8690d60092a41f1a30bbf7c59
parente47e7379ce3e03018619e994976b4059b790c955
staging: dgnc: use tty_alloc_driver instead of kcalloc

The tty_alloc_driver() can allocate memory for ttys and termios.
And also allocated memory will be released easily with
put_tty_driver() call.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/dgnc_tty.c