parport_pc and !CONFIG_PNP
diff mbox series

Message ID
State New, archived
Headers show
  • parport_pc and !CONFIG_PNP
Related show

Commit Message

Geert Uytterhoeven Jan. 5, 2003, 2:52 p.m. UTC
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.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

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
More majordomo info at
Please read the FAQ at

diff mbox series

--- 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,
-static const struct pnp_driver parport_pc_pnp_driver;
+static struct pnp_driver parport_pc_pnp_driver;
 /* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */