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

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

diff -u --recursive --new-file v2.1.125/linux/drivers/char/joystick/joy-analog.c linux/drivers/char/joystick/joy-analog.c
@@ -73,7 +73,7 @@
 	u = a = ((info->mask[0] | info->mask[1]) & JS_AN_AXES_STD) | (info->extensions & JS_AN_HAT_FCS)
 	      | ((info->extensions & JS_AN_BUTTONS_PXY_XY) >> 2) | ((info->extensions & JS_AN_BUTTONS_PXY_UV) >> 4);
 
-	outb(inb(io),io);
+	outb(0xff,io);
 	t = js_get_time_a();
 	do {
 		v = inb(io) & a;
@@ -130,7 +130,7 @@
 	if (check_region(io, 1)) return port;
 
 	if (((u = inb(io)) & 3) == 3) return port;
-	outb(u,io);
+	outb(0xff,io);
 	u = inb(io);
 	udelay(JS_AN_MAX_TIME);
 	u = (inb(io) ^ u) & u;

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