patch-2.3.99-pre4 linux/drivers/char/joystick/joy-spaceball.c

Next file: linux/drivers/char/joystick/joy-spaceorb.c
Previous file: linux/drivers/char/cpia_usb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/drivers/char/joystick/joy-spaceball.c linux/drivers/char/joystick/joy-spaceball.c
@@ -207,6 +207,8 @@
 	struct js_sball_info iniinfo;
 	struct js_sball_info *info = &iniinfo;
 
+	MOD_INC_USE_COUNT;
+
 	info->tty = tty;
 	info->idx = 0;
 	info->used = 1;
@@ -221,8 +223,6 @@
 
 	js_sball_init_corr(js_sball_port->corr);
 
-	MOD_INC_USE_COUNT;
-
 	return 0;
 }
 
@@ -312,9 +312,7 @@
 
 static struct tty_ldisc js_sball_ldisc = {
 	magic:		TTY_LDISC_MAGIC,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
 	name:		"spaceball",
-#endif
 	open:		js_sball_ldisc_open,
 	close:		js_sball_ldisc_close,
 	receive_buf:	js_sball_ldisc_receive,

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