patch-2.3.48 linux/drivers/usb/mousedev.c
Next file: linux/drivers/usb/printer.c
Previous file: linux/drivers/usb/keybdev.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Feb 23 11:27:14 2000
- Orig file:
v2.3.47/linux/drivers/usb/mousedev.c
- Orig date:
Fri Jan 28 15:09:08 2000
diff -u --recursive --new-file v2.3.47/linux/drivers/usb/mousedev.c linux/drivers/usb/mousedev.c
@@ -447,12 +447,7 @@
disconnect: mousedev_disconnect,
};
-
-#ifdef MODULE
-int init_module(void)
-#else
-int __init mousedev_init(void)
-#endif
+static int __init mousedev_init(void)
{
input_register_handler(&mousedev_handler);
@@ -472,13 +467,13 @@
return 0;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit mousedev_exit(void)
{
#ifdef CONFIG_INPUT_MOUSEDEV_MIX
misc_deregister(&mousedev_single.misc);
#endif
-
input_unregister_handler(&mousedev_handler);
}
-#endif
+
+module_init(mousedev_init);
+module_exit(mousedev_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)