[PATCH] Ns558 gameport warning

From: Geert Uytterhoeven (geert@linux-m68k.org)
Date: Sat Jul 26 2003 - 09:51:52 EST


Ns558 gameport: constness of ns558_pnp_driver depends on CONFIG_PNP, causing a
warning if CONFIG_PNP is not set, so make sure it is never const.

--- linux-2.6.x/drivers/input/gameport/ns558.c Sun Feb 16 12:16:23 2003
+++ linux-m68k-2.6.x/drivers/input/gameport/ns558.c Mon Jun 23 13:06:27 2003
@@ -243,7 +243,7 @@
 
 #else
 
-static const struct pnp_driver ns558_pnp_driver;
+static struct pnp_driver ns558_pnp_driver;
 
 #endif
 

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/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:28 EST