parport_pc and !CONFIG_PNP
diff mbox series

Message ID Pine.GSO.4.21.0301051548560.10519-100000@vervain.sonytel.be
State New, archived
Headers show
Series
  • 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.


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/

Patch
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,
 };
 #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) */