[lkml]   [2003]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
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,
-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) */

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

 \ /
  Last update: 2005-03-22 13:32    [W:0.052 / U:1.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site