patch-2.3.49 linux/drivers/usb/joydev.c

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

diff -u --recursive --new-file v2.3.48/linux/drivers/usb/joydev.c linux/drivers/usb/joydev.c
@@ -464,7 +464,7 @@
 	disconnect:	joydev_disconnect,
 };
 
-static int joydev_init(void)
+static int __init joydev_init(void)
 {
 	if (register_chrdev(JOYDEV_MAJOR, "js", &joydev_fops)) {
 		printk(KERN_ERR "joydev: unable to get major %d for joystick\n", JOYDEV_MAJOR);
@@ -474,7 +474,7 @@
 	return 0;
 }
 
-static void joydev_exit(void)
+static void __exit joydev_exit(void)
 {
 	input_unregister_handler(&joydev_handler);
 	if (unregister_chrdev(JOYSTICK_MAJOR, "js"))

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