Skip to contentSkip to conversation

arm: add KERN_ constants to

PATCH In review James Nelson 1 participant 1 message Sep 8, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 14/72 arm: add KERN_ constants to

---

arch/arm/mach-lh7a40x/ssp-cpld.c +7 -12
index a108301..90f722c 100644
@@ -50,13 +50,8 @@ #include <asm/hardware.h>
 
 #include <asm/arch/ssp.h>
 
-//#define TALK
-
-#if defined (TALK)
-#define PRINTK(f...)		printk (f)
-#else
-#define PRINTK(f...)		do {} while (0)
-#endif
+#undef DEBUG
+#define DPRINTK(fmt, args...)		pr_debug(fmt, ## args)
 
 #if defined (CONFIG_ARCH_LH7A400)
 # define CPLD_SPID		__REGP16(CPLD06_VIRT) /* SPI data */
@@ -167,14 +162,14 @@ #if defined (CONFIG_MACH_LPD7A400)
 	    || ssp_configuration.device = DEVICE_TOUCH) {
 		int select = 0;
 
-		PRINTK ("spi(%d %d.%d) 0x%04x",
+		DPRINTK ("spi(%d %d.%d) 0x%04x",
 			ssp_configuration.device, cwrite, cread,
 			v);
-#if defined (TALK)
+#if defined (DEBUG)
 		if (ssp_configuration.device = DEVICE_CODEC)
-			PRINTK (" 0x%03x -> %2d", v & 0x1ff, (v >> 9) & 0x7f);
+			DPRINTK (" 0x%03x -> %2d", v & 0x1ff, (v >> 9) & 0x7f);
 #endif
-		PRINTK ("\n");
+		DPRINTK ("\n");
 
 		if (ssp_configuration.device = DEVICE_CODEC)
 			select = CPLD_SPIC_CS_CODEC;
@@ -211,7 +206,7 @@ #endif
 	}
 #endif
 
-	PRINTK ("spi(%d) 0x%04x -> 0x%x\r\n", ssp_configuration.device,
+	DPRINTK ("spi(%d) 0x%04x -> 0x%x\r\n", ssp_configuration.device,
 		v & 0x1ff, (v >> 9) & 0x7f);
 
 	enable_cs ();

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors