Skip to contentSkip to conversation

cm40x0_cs.c: fix debug macros

PATCH New Pascal Terjan 1 participant 1 message Nov 8, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cm40x0_cs.c: fix debug macros

When PCMCIA_DEBUG is set, cm40x0_cs.c and cm4000_cs.c don't build because the definition of reader_to_dev uses a non-existent handle field of the struct pcmcia_device in the call to handle_to_dev.
As handle_to_dev works on struct pcmcia_device, the fix is quite trivial.

---
 drivers/char/pcmcia/cm4000_cs.c |    2 +-
 drivers/char/pcmcia/cm4040_cs.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/pcmcia/cm4000_cs.c +1 -1
index cc5d777..02518da 100644
@@ -47,7 +47,7 @@
 /* #define ATR_CSUM */
 
 #ifdef PCMCIA_DEBUG
-#define reader_to_dev(x)	(&handle_to_dev(x->p_dev->handle))
+#define reader_to_dev(x)	(&handle_to_dev(x->p_dev))
 static int pc_debug = PCMCIA_DEBUG;
 module_param(pc_debug, int, 0600);
 #define DEBUGP(n, rdr, x, args...) do { 				\
drivers/char/pcmcia/cm4040_cs.c +1 -1
index a0b9c87..5f291bf 100644
@@ -41,7 +41,7 @@
 
 
 #ifdef PCMCIA_DEBUG
-#define reader_to_dev(x)	(&handle_to_dev(x->p_dev->handle))
+#define reader_to_dev(x)	(&handle_to_dev(x->p_dev))
 static int pc_debug = PCMCIA_DEBUG;
 module_param(pc_debug, int, 0600);
 #define DEBUGP(n, rdr, x, args...) do { 				\
Signature · 1 line
1.5.3.5