Commit ead568c9 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

[PATCH] Char: mxser_new, don't check tty_unregister retval



Like other drivers silently unregister_tty_driver and put_tty_driver.  It
shouldn't be busy when module release function is called, since we are not
bsd, no refs shouldn't be held.

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 171d3a86
...@@ -2994,15 +2994,12 @@ static int __init mxser_module_init(void) ...@@ -2994,15 +2994,12 @@ static int __init mxser_module_init(void)
static void __exit mxser_module_exit(void) static void __exit mxser_module_exit(void)
{ {
int i, err; unsigned int i;
pr_debug("Unloading module mxser ...\n"); pr_debug("Unloading module mxser ...\n");
err = tty_unregister_driver(mxvar_sdriver); tty_unregister_driver(mxvar_sdriver);
if (!err) put_tty_driver(mxvar_sdriver);
put_tty_driver(mxvar_sdriver);
else
printk(KERN_ERR "Couldn't unregister MOXA Smartio/Industio family serial driver\n");
for (i = 0; i < MXSER_BOARDS; i++) for (i = 0; i < MXSER_BOARDS; i++)
if (mxser_boards[i].board_type != -1) if (mxser_boards[i].board_type != -1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment