patch-2.1.126 linux/drivers/char/joystick/joy-thrustmaster.c

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

diff -u --recursive --new-file v2.1.125/linux/drivers/char/joystick/joy-thrustmaster.c linux/drivers/char/joystick/joy-thrustmaster.c
@@ -94,7 +94,7 @@
 
 	__save_flags(flags);
 	__cli();
-	outb(inb(io),io);
+	outb(0xff,io);
 
 	t = js_get_time();
 
@@ -262,7 +262,7 @@
 	if (check_region(io, 1)) return port;
 
 	if (((u = inb(io)) & 3) == 3) return port;
-	outb(u,io);
+	outb(0xff,io);
 	if (!((inb(io) ^ u) & ~u & 0xf)) return port;
 
 	if(js_tm_read_packet(io, data)) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov