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)
commit08f53f61afd1fdba7f50409e6da10b7484c24aa6
treedbe44e29558b66d0f22baa34de8f20f77c1e887a
parent219a40d0992a6aaf9da6f974b9023f1a711dc582
staging: dgap: introduce dgap_tty_free() for freeing channels.

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