Commit 4813cbd7 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] parport_pc and !CONFIG_PNP

From:  Geert Uytterhoeven <geert@linux-m68k.org>

  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.
parent cb264eb8
......@@ -2987,7 +2987,7 @@ static struct pnp_driver parport_pc_pnp_driver = {
.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) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment