patch-2.3.48 linux/drivers/usb/keybdev.c

Next file: linux/drivers/usb/mousedev.c
Previous file: linux/drivers/usb/joydev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/usb/keybdev.c linux/drivers/usb/keybdev.c
@@ -158,18 +158,18 @@
 	disconnect:	keybdev_disconnect,
 };
 
-#ifdef MODULE
-void cleanup_module(void)
-{
-	kbd_ledfunc = NULL;
-	input_unregister_handler(&keybdev_handler);
-}
-int init_module(void)
-#else
-int __init keybdev_init(void)
-#endif
+static int __init keybdev_init(void)
 {
 	input_register_handler(&keybdev_handler);
 	kbd_ledfunc = keybdev_ledfunc;
 	return 0;
 }
+
+static void __exit keybdev_exit(void)
+{
+	kbd_ledfunc = NULL;
+	input_unregister_handler(&keybdev_handler);
+}
+
+module_init(keybdev_init);
+module_exit(keybdev_exit);

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