--- linux-2.4.0-test12/include/linux/parport.h Tue Dec 12 15:41:56 2000 +++ linux/include/linux/parport.h Tue Dec 12 21:32:53 2000 @@ -91,6 +91,10 @@ /* Flags for block transfer operations. */ #define PARPORT_EPP_FAST (1<<0) /* Unreliable counts. */ +struct parport_device_id { + const char ch; +}; /* Normally, a string will be cast into a pointer to this struct. */ + /* The rest is for the kernel only */ #ifdef __KERNEL__ --- linux-2.4.0-test12/drivers/char/lp.c Mon Oct 30 18:40:37 2000 +++ linux/drivers/char/lp.c Tue Dec 12 21:37:20 2000 @@ -141,6 +141,10 @@ /* ROUND_UP macro from fs/select.c */ #define ROUND_UP(x,y) (((x)+(y)-1)/(y)) +static __initdata char printer_ieee1284_id[] = ".*;CLS:PRINTER;.*"; + +MODULE_DEVICE_TABLE(parport, (struct parport_device_id*) printer_ieee1284_id); + static devfs_handle_t devfs_handle = NULL; struct lp_struct lp_table[LP_NO];