diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2016-09-26 09:43:51 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 13:12:26 +0200 |
commit | eea5fd116401ed89994e11a6cc1a2e0bee83d8c9 (patch) | |
tree | 85ca6227462df2553857dedfe139153b144f1426 /drivers/staging/dgnc/dgnc_tty.c | |
parent | f20ae478ffcf5f191dc7b9aea0489b85e97c8e4e (diff) | |
download | linux-eea5fd116401ed89994e11a6cc1a2e0bee83d8c9.tar.gz linux-eea5fd116401ed89994e11a6cc1a2e0bee83d8c9.tar.xz |
staging: dgnc: introduce the dgnc_tty_unregister()
The dgnc_tty_unregister() will be called when
the dgnc_tty_register() is failed.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_tty.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 1c1ac8427b6e..4f781955726b 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -273,6 +273,14 @@ free_serial_driver: return rc; } +void dgnc_tty_unregister(struct dgnc_board *brd) +{ + tty_unregister_driver(brd->print_driver); + tty_unregister_driver(brd->serial_driver); + put_tty_driver(brd->print_driver); + put_tty_driver(brd->serial_driver); +} + /* * dgnc_tty_init() * |