patch-2.3.32 linux/drivers/acorn/char/mouse_rpc.c
Next file: linux/drivers/acorn/scsi/fas216.c
Previous file: linux/drivers/acorn/char/Makefile
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Mon Dec 13 16:26:27 1999
- Orig file:
v2.3.31/linux/drivers/acorn/char/mouse_rpc.c
- Orig date:
Mon Aug 2 10:19:52 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/acorn/char/mouse_rpc.c linux/drivers/acorn/char/mouse_rpc.c
@@ -12,6 +12,7 @@
#include <linux/sched.h>
#include <linux/ptrace.h>
#include <linux/interrupt.h>
+#include <linux/init.h>
#include <asm/hardware.h>
#include <asm/irq.h>
@@ -48,8 +49,7 @@
6, "arcmouse", NULL, NULL, 7
};
-int
-mouse_rpc_init(void)
+static int __init mouse_rpc_init(void)
{
mousedev = register_busmouse(&rpcmouse);
@@ -69,19 +69,13 @@
return mousedev >= 0 ? 0 : -ENODEV;
}
-#ifdef MODULE
-int
-init_module(void)
-{
- return mouse_rpc_init();
-}
-
-int
-cleanup_module(void)
+static void __exit mouse_rpc_exit(void)
{
if (mousedev >= 0) {
unregister_busmouse(mousedev);
free_irq(IRQ_VSYNCPULSE, &mousedev);
}
}
-#endif
+
+module_init(mouse_rpc_init);
+module_exit(mouse_rpc_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)