Skip to contentSkip to conversation

fix two PCMCIA warnings

PATCH New Adrian Bunk 1 participant 1 message Mar 21, 2004 Pcmcia

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix two PCMCIA warnings

The

Add, fix, update PCMCIA debugging.

patch in 2.6.5-rc introduced the following compile warnings with CONFIG_PCMCIA_DEBUG enabled:

<-- snip -->

...
CC drivers/pcmcia/i82365.o
drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
...
CC drivers/pcmcia/tcic.o
drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
...

<-- snip -->

Since the version strings are unused and seem to be quite outdated, I propose the patch below to remove them.

I've tested both the modular and the non-modular compilation with this patch applied.

Please apply
Adrian

drivers/pcmcia/i82365.c renamed from drivers/pcmcia/i82365.c.old +0 -3
@@ -68,9 +68,6 @@
 #include "o2micro.h"
 
 #ifdef DEBUG
-static const char *version =
-"i82365.c 1.265 1999/11/10 18:36:21 (David Hinds)";
-
 static int pc_debug;
 
 module_param(pc_debug, int, 0644);
drivers/pcmcia/tcic.c renamed from drivers/pcmcia/tcic.c.old +0 -2
@@ -61,8 +61,6 @@
 
 module_param(pc_debug, int, 0644);
 MODULE_PARM(pc_debug, "i");
-static const char *version =
-"tcic.c 1.111 2000/02/15 04:13:12 (David Hinds)";
 
 #define debug(lvl, fmt, arg...) do {				\
 	if (pc_debug > (lvl))					\