--- linux-2.4.0-test12/include/linux/parport.h Mon Dec 11 12:50:09 2000 +++ linux/include/linux/parport.h Sat Dec 16 08:38:01 2000 @@ -91,6 +91,10 @@ /* Flags for block transfer operations. */ #define PARPORT_EPP_FAST (1<<0) /* Unreliable counts. */ +struct parport_device_id { + const char *pattern; /* must be all lower case */ +}; + /* The rest is for the kernel only */ #ifdef __KERNEL__ --- linux-2.4.0-test12/drivers/char/lp.c Thu Oct 12 14:20:47 2000 +++ linux/drivers/char/lp.c Sat Dec 16 08:39:46 2000 @@ -141,6 +141,17 @@ /* ROUND_UP macro from fs/select.c */ #define ROUND_UP(x,y) (((x)+(y)-1)/(y)) +/* printer_ieee1284_id is declared as its own variable so that it + can be in the __initdata section. */ +static __initdata char printer_ieee1284_id[] = "CLS:PRINTER"; + +static __initdata struct parport_device_id printer_id_tbl[] = { + { printer_ieee1284_id }, + { } +}; + +MODULE_DEVICE_TABLE(parport, printer_id_tbl); + static devfs_handle_t devfs_handle = NULL; struct lp_struct lp_table[LP_NO];