patch-1.3.39 linux/drivers/char/atixlmouse.c

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

diff -u --recursive --new-file v1.3.38/linux/drivers/char/atixlmouse.c linux/drivers/char/atixlmouse.c
@@ -10,16 +10,7 @@
  * version 0.3a
  */
 
-#ifdef MODULE
 #include <linux/module.h>
-#include <linux/version.h>
-
-char kernel_version[] = UTS_RELEASE;
-#define atixl_busmouse_init init_module
-#else
-#define MOD_INC_USE_COUNT
-#define MOD_DEC_USE_COUNT
-#endif
 
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -236,12 +227,14 @@
 }
 
 #ifdef MODULE
+
+int init_module(void)
+{
+	return atixl_busmouse_init();
+}
+
 void cleanup_module(void)
 {
-	if (MOD_IN_USE) {
-		printk("atixlmouse: in use, remove delayed\n");
-		return;
-	}
 	mouse_deregister(&atixl_mouse);
 }
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this