Commit 32f05867 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix tpqic02 + tidy it up

parent e4b0a4f2
......@@ -697,9 +697,6 @@ int __init chr_dev_init(void)
lp_m68k_init();
#endif
misc_init();
#if CONFIG_QIC02_TAPE
qic02_tape_init();
#endif
#ifdef CONFIG_FTAPE
ftape_init();
#endif
......
......@@ -2759,9 +2759,7 @@ int __init qic02_tape_init(void)
return 0;
} /* qic02_tape_init */
#ifdef MODULE
void cleanup_module(void)
static void qic02_module_exit(void)
{
unregister_chrdev(QIC02_TAPE_MAJOR, TPQIC02_NAME);
if (status_zombie == NO)
......@@ -2777,7 +2775,7 @@ void cleanup_module(void)
devfs_remove("tpqic150");
}
int init_module(void)
static int qic02_module_init(void)
{
int retval;
retval = qic02_tape_init();
......@@ -2788,12 +2786,14 @@ int init_module(void)
if (!retval && qic02_tape_dynconf.ifc_type) {
retval = update_ifc_masks(qic02_tape_dynconf.ifc_type);
if (retval) {
cleanup_module();
qic02_module_exit();
}
}
# endif
return retval;
}
#endif
MODULE_LICENSE("GPL");
module_init(qic02_module_init);
module_exit(qic02_module_exit);
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