staging: dgap: introduce dgap_tty_free() for freeing channels.
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 13 Jun 2014 09:19:55 +0000 (18:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:23:31 +0000 (15:23 -0700)
It should be called after dgap_tty_register_ports() is failed.
So channels which are allocated in dgap_tty_init() will be freed.

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

Simple merge