Messages in this thread Patch in this message | | | Date | Sun, 5 Jan 2003 15:52:49 +0100 (MET) | From | Geert Uytterhoeven <> | Subject | [PATCH] parport_pc and !CONFIG_PNP |
| |
parport_pc_pnp_driver is const if !CONFIG_PNP, while pnp_register_driver() takes a non-const pointer as parameter.
An alternative fix is to change the prototype of the dummy pnp_register_driver(), but this may affect other drivers.
--- linux-2.5.54/drivers/parport/parport_pc.c Thu Jan 2 12:54:34 2003 +++ linux-m68k-2.5.54/drivers/parport/parport_pc.c Fri Jan 3 17:45:08 2003 @@ -2987,7 +2987,7 @@ .id_table = pnp_dev_table, }; #else -static const struct pnp_driver parport_pc_pnp_driver; +static struct pnp_driver parport_pc_pnp_driver; #endif /* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */ Gr{oetje,eeting}s, Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |