Subject: [PATCH] typo fix for au1's pcmcia debugging code

From: Yasushi SHOJI <[email-masked]>
Date: Fri, 09 May 2003 22:36:59 +0900

Hi Pete,

this is just a quick typo fix patch for current 2.4 branch on
linux-mips.org.

I'm assuming that the original code was intended to use macro
`DEBUG()' defined in cs_internal.h.

and macro `DEBUG()' requires `int pc_debug' declared somewhere.

Hope I'm not misunderstanding anything.

regards,
--
       yashi
Index: drivers/pcmcia/au1000_db1x00.c
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/Attic/au1000_db1x00.c,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 au1000_db1x00.c
--- drivers/pcmcia/au1000_db1x00.c	7 Jan 2003 10:41:30 -0000	1.1.2.2
+++ drivers/pcmcia/au1000_db1x00.c	9 May 2003 09:31:32 -0000
@@ -94,8 +94,8 @@
 		inserted = !(bcsr->status & (1<<5));
 	}
 
-	DEBUG(KERN_DEBUG "db1x00 socket %d: inserted %d, vs %d\n", 
-			sock, inserted, vs);
+	DEBUG(3, "db1x00 socket %d: inserted %d, vs %d\n",
+              sock, inserted, vs);
 
 	if (inserted) {
 		switch (vs) {
@@ -161,8 +161,8 @@
 
 	if(sock > PCMCIA_MAX_SOCK) return -1;
 
-	DEBUG(KERN_DEBUG "socket %d Vcc %dV Vpp %dV, reset %d\n", 
-			sock, configure->vcc, configure->vpp, configure->reset);
+	DEBUG(3, "socket %d Vcc %dV Vpp %dV, reset %d\n", 
+              sock, configure->vcc, configure->vpp, configure->reset);
 
 	/* pcmcia reg was set to zero at init time. Be careful when
 	 * initializing a socket not to wipe out the settings of the 
Index: drivers/pcmcia/au1000_generic.c
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/au1000_generic.c,v
retrieving revision 1.3.2.9
diff -u -r1.3.2.9 au1000_generic.c
--- drivers/pcmcia/au1000_generic.c	13 Mar 2003 00:04:48 -0000	1.3.2.9
+++ drivers/pcmcia/au1000_generic.c	9 May 2003 09:31:32 -0000
@@ -56,7 +56,7 @@
 #include <asm/au1000_pcmcia.h>
 
 #ifdef PCMCIA_DEBUG
-static int pc_debug;
+int pc_debug = PCMCIA_DEBUG;
 #endif
 
 MODULE_LICENSE("GPL");
Index: drivers/pcmcia/au1000_pb1x00.c
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/au1000_pb1x00.c,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 au1000_pb1x00.c
--- drivers/pcmcia/au1000_pb1x00.c	13 Mar 2003 00:04:48 -0000	1.1.2.3
+++ drivers/pcmcia/au1000_pb1x00.c	9 May 2003 09:31:33 -0000
@@ -219,8 +219,8 @@
 	}
 
 	pcr &= ~PCR_SLOT_0_RST;
-	DEBUG(KERN_INFO "Vcc %dV Vpp %dV, pcr %x\n", 
-			configure->vcc, configure->vpp, pcr);
+	DEBUG(3, "Vcc %dV Vpp %dV, pcr %x\n",
+              configure->vcc, configure->vpp, pcr);
 	switch(configure->vcc){
 		case 0:  /* Vcc 0 */
 			switch(configure->vpp) {
@@ -330,8 +330,8 @@
 
 	pcr = au_readw(PCMCIA_BOARD_REG) & ~0xf;
 
-	DEBUG(KERN_INFO "Vcc %dV Vpp %dV, pcr %x, reset %d\n", 
-			configure->vcc, configure->vpp, pcr, configure->reset);
+	DEBUG(3, "Vcc %dV Vpp %dV, pcr %x, reset %d\n", 
+              configure->vcc, configure->vpp, pcr, configure->reset);

 	switch(configure->vcc){