patch-2.3.10 linux/drivers/char/joystick/joy-db9.c

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

diff -u --recursive --new-file v2.3.9/linux/drivers/char/joystick/joy-db9.c linux/drivers/char/joystick/joy-db9.c
@@ -337,7 +337,7 @@
 			return port;
 		}
 
-		if (!(pp->modes & (PARPORT_MODE_PCPS2 | PARPORT_MODE_PCECPPS2))) {
+		if (!(pp->modes & PARPORT_MODE_TRISTATE)) {
 			printk(KERN_ERR "js-db9: specified parport is not bidirectional\n");
 			return port;
 		}

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