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

Next file: linux/drivers/usb/ftdi_sio.h
Previous file: linux/drivers/usb/devio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/usb/evdev.c linux/drivers/usb/evdev.c
@@ -256,20 +256,16 @@
 	disconnect:	evdev_disconnect,
 };
 
-#ifdef MODULE
-int init_module(void)
-#else
-int __init evdev_init(void)
-#endif
+static int __init evdev_init(void)
 {
 	input_register_handler(&evdev_handler);
-
 	return 0;
 }
 
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit evdev_exit(void)
 {
 	input_unregister_handler(&evdev_handler);
 }
-#endif
+
+module_init(evdev_init);
+module_exit(evdev_exit);

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