staging: dgap: unwind on error in dgap_tty_register_ports()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 2 Jun 2014 05:08:24 +0000 (14:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:21:47 +0000 (15:21 -0700)
commit72d0f6fc63fa42ef3b956b2f02f3a10dca1225fe
treee5f6e5713abed5d3c86ba3e80eabb48908c8c038
parent551a9d73942b0ffa6cb9fe3bb35936dcc7172281
staging: dgap: unwind on error in dgap_tty_register_ports()

- The dgap_tty_register_ports() needs to handle if the
tty_port_register_device() fails.

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