patch-2.3.17 linux/drivers/char/amigamouse.c
Next file: linux/drivers/char/applicom.c
Previous file: linux/drivers/char/Config.in
Back to the patch index
Back to the overall index
- Lines: 75
- Date:
Sat Sep 4 13:08:32 1999
- Orig file:
v2.3.16/linux/drivers/char/amigamouse.c
- Orig date:
Mon Aug 2 09:54:29 1999
diff -u --recursive --new-file v2.3.16/linux/drivers/char/amigamouse.c linux/drivers/char/amigamouse.c
@@ -58,7 +58,7 @@
#include "busmouse.h"
-#if 0
+#if AMIGA_OLD_INT
#define AMI_MSE_INT_ON() mouseint_allowed = 1
#define AMI_MSE_INT_OFF() mouseint_allowed = 0
static int mouseint_allowed;
@@ -75,7 +75,7 @@
unsigned short joy0dat, potgor;
-#if 0
+#if AMIGA_OLD_INT
if(!mouseint_allowed)
return;
AMI_MSE_INT_OFF();
@@ -136,7 +136,7 @@
busmouse_add_movementbuttons(msedev, dx, -dy, buttons);
-#if 0
+#if AMIGA_OLD_INT
AMI_MSE_INT_ON();
#endif
}
@@ -148,7 +148,7 @@
static int release_mouse(struct inode * inode, struct file * file)
{
free_irq(IRQ_AMIGA_VERTB, mouse_interrupt);
-#if 0
+#if AMIGA_OLD_INT
AMI_MSE_INT_OFF();
#endif
MOD_DEC_USE_COUNT;
@@ -173,7 +173,7 @@
}
MOD_INC_USE_COUNT;
-#if 0
+#if AMIGA_OLD_INT
AMI_MSE_INT_ON();
#endif
return 0;
@@ -189,7 +189,7 @@
return -ENODEV;
custom.joytest = 0; /* reset counters */
-#if 0
+#if AMIGA_OLD_INT
AMI_MSE_INT_OFF();
#endif
msedev = register_busmouse(&amigamouse);
@@ -200,15 +200,12 @@
return msedev < 0 ? msedev : 0;
}
-#ifdef MODULE
-
-int init_module(void)
+void __exit amiga_mouse_exit(void)
{
- return amiga_mouse_init();
+ unregister_busmouse(msedev);
}
-void cleanup_module(void)
-{
- unregsiter_busmouse(msedev);
-}
+#ifdef MODULE
+module_init(amiga_mouse_init)
+module_exit(amiga_mouse_exit)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)