Tim Waugh (tim@cyberelk.demon.co.uk)
Sun, 18 Oct 1998 22:01:36 +0100 (BST)
Here's a patch for parport_probe to remove the dependency on lp.h. I'm
posting it here in the hope that someone will remember it for 2.3, rather
than in an effort to get the change in 2.2.
Similar patches should be made for plip and coda/psdev(!).
Tim.
*/
--- linux/drivers/pnp/parport_probe.c~ Sat Oct 17 11:01:00 1998
+++ linux/drivers/pnp/parport_probe.c Sun Oct 18 21:57:20 1998
@@ -16,8 +16,6 @@
#include <linux/ctype.h>
#include <linux/module.h>
-#include <linux/lp.h>
-
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/uaccess.h>
@@ -79,8 +77,8 @@
if (count++ == length)
temp = NULL;
/* Does the error line indicate end of data? */
- if ((parport_read_status(port) & LP_PERRORP) ==
- LP_PERRORP)
+ if ((parport_read_status(port) & PARPORT_STATUS_ERROR)
+ == PARPORT_STATUS_ERROR)
break;
} else
Byte=z;
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:18:37 EST