Patch: 2.1.85: Bugfix: LP device selection

Adam Heath (adam.heath@usa.net)
Sun, 8 Feb 1998 05:06:30 -0500 (EST)


When specifying lp devices to be associated with parport devices, lp.c says to
use parport=-1,0 to make it work like 2.0. However, this doesn't work as
advertised. It insists on makes lp0=parport0. The following *simple* patch
fixes this, at least for me. All it does it move one line lower in the file.

--- lp.c.orig Sat Feb 7 21:50:45 1998
+++ lp.c Sat Feb 7 21:46:59 1998
@@ -708,7 +708,6 @@
case LP_PARPORT_OFF:
return 0;

- case LP_PARPORT_UNSPEC:
case LP_PARPORT_AUTO:
for (port = parport_enumerate(); port; port = port->next) {

@@ -722,6 +721,7 @@
}
break;

+ case LP_PARPORT_UNSPEC:
default:
for (count = 0; count < LP_NO; count++) {
if (parport[count] != LP_PARPORT_UNSPEC) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu