CAPI: Clean up capinc_tty_init/exit
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:24 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:26 +0000 (16:01 -0800)
commite76b1544074b5fc7983a21fb1f51a7faf03d3179
treebbea37776ed94f4dbc9eb5cfb2bdb772d33e8611
parent81d17fe5e29d863027824928e1c336baa9abfee9
CAPI: Clean up capinc_tty_init/exit

Return proper error code if tty_register_driver fails. In contrast,
tty_unregister_driver cannot practically fail, so drop that error
handling. Finally, mark capinc_tty_init/exit with __init/__exit.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c