patch-2.3.26 linux/drivers/char/amigamouse.c

Next file: linux/drivers/char/atarimouse.c
Previous file: linux/drivers/char/adbmouse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/drivers/char/amigamouse.c linux/drivers/char/amigamouse.c
@@ -183,7 +183,7 @@
 	AMIGAMOUSE_MINOR, "amigamouse", open_mouse, release_mouse, 7
 };
 
-int __init amiga_mouse_init(void)
+static int __init amiga_mouse_init(void)
 {
 	if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(AMI_MOUSE))
 		return -ENODEV;
@@ -200,12 +200,10 @@
 	return msedev < 0 ? msedev : 0;
 }
 
-void __exit amiga_mouse_exit(void)
+static void __exit amiga_mouse_exit(void)
 {
 	unregister_busmouse(msedev);
 }
 
-#ifdef MODULE
-module_init(amiga_mouse_init)
-module_exit(amiga_mouse_exit)
-#endif
+module_init(amiga_mouse_init);
+module_exit(amiga_mouse_exit);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)