diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-12-08 05:38:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:54 -0500 |
commit | ead568c9cdab2592abdbd1f023931665cc24b5db (patch) | |
tree | ffb25b4752844881b87749e483f76e1648e0a5d1 /drivers/char/mxser_new.c | |
parent | 171d3a86788eef4f751b88265bac393c3232dbdd (diff) |
[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: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/mxser_new.c')
-rw-r--r-- | drivers/char/mxser_new.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index 7da717730ac7..47af0bba5240 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -2994,15 +2994,12 @@ static int __init mxser_module_init(void) | |||
2994 | 2994 | ||
2995 | static void __exit mxser_module_exit(void) | 2995 | static void __exit mxser_module_exit(void) |
2996 | { | 2996 | { |
2997 | int i, err; | 2997 | unsigned int i; |
2998 | 2998 | ||
2999 | pr_debug("Unloading module mxser ...\n"); | 2999 | pr_debug("Unloading module mxser ...\n"); |
3000 | 3000 | ||
3001 | err = tty_unregister_driver(mxvar_sdriver); | 3001 | tty_unregister_driver(mxvar_sdriver); |
3002 | if (!err) | 3002 | put_tty_driver(mxvar_sdriver); |
3003 | put_tty_driver(mxvar_sdriver); | ||
3004 | else | ||
3005 | printk(KERN_ERR "Couldn't unregister MOXA Smartio/Industio family serial driver\n"); | ||
3006 | 3003 | ||
3007 | for (i = 0; i < MXSER_BOARDS; i++) | 3004 | for (i = 0; i < MXSER_BOARDS; i++) |
3008 | if (mxser_boards[i].board_type != -1) | 3005 | if (mxser_boards[i].board_type != -1) |