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 3/72 arm: add KERN_ constants to

---

arch/arm/mach-h720x/common.c +8 -11
index c096b45..2b74d79 100644
@@ -31,11 +31,8 @@ #include <asm/arch/irqs.h>
 
 #include <asm/mach/dma.h>
 
-#if 0
-#define IRQDBG(args...) printk(args)
-#else
-#define IRQDBG(args...) do {} while(0)
-#endif
+#undef DEBUG
+#define IRQDBG(fmt, args...) pr_debug("%s: " fmt, __FUNCTION__, ## args)
 
 void __init arch_dma_init(dma_t *dma)
 {
@@ -103,7 +100,7 @@ static void
 h720x_gpio_handler(unsigned int mask, unsigned int irq,
                  struct irqdesc *desc, struct pt_regs *regs)
 {
-	IRQDBG("%s irq: %d\n",__FUNCTION__,irq);
+	IRQDBG("irq: %d\n",irq);
 	desc = irq_desc + irq;
 	while (mask) {
 		if (mask & 1) {
@@ -124,7 +121,7 @@ h720x_gpioa_demux_handler(unsigned int i
 
 	mask = CPU_REG(GPIO_A_VIRT,GPIO_STAT);
 	irq = IRQ_CHAINED_GPIOA(0);
-	IRQDBG("%s mask: 0x%08x irq: %d\n",__FUNCTION__,mask,irq);
+	IRQDBG("mask: 0x%08x irq: %d\n",mask,irq);
 	h720x_gpio_handler(mask, irq, desc, regs);
 }
 
@@ -135,7 +132,7 @@ h720x_gpiob_demux_handler(unsigned int i
 	unsigned int mask, irq;
 	mask = CPU_REG(GPIO_B_VIRT,GPIO_STAT);
 	irq = IRQ_CHAINED_GPIOB(0);
-	IRQDBG("%s mask: 0x%08x irq: %d\n",__FUNCTION__,mask,irq);
+	IRQDBG("mask: 0x%08x irq: %d\n",mask,irq);
 	h720x_gpio_handler(mask, irq, desc, regs);
 }
 
@@ -147,7 +144,7 @@ h720x_gpioc_demux_handler(unsigned int i
 
 	mask = CPU_REG(GPIO_C_VIRT,GPIO_STAT);
 	irq = IRQ_CHAINED_GPIOC(0);
-	IRQDBG("%s mask: 0x%08x irq: %d\n",__FUNCTION__,mask,irq);
+	IRQDBG("mask: 0x%08x irq: %d\n",mask,irq);
 	h720x_gpio_handler(mask, irq, desc, regs);
 }
 
@@ -159,7 +156,7 @@ h720x_gpiod_demux_handler(unsigned int i
 
 	mask = CPU_REG(GPIO_D_VIRT,GPIO_STAT);
 	irq = IRQ_CHAINED_GPIOD(0);
-	IRQDBG("%s mask: 0x%08x irq: %d\n",__FUNCTION__,mask,irq);
+	IRQDBG("mask: 0x%08x irq: %d\n",mask,irq);
 	h720x_gpio_handler(mask, irq, desc, regs);
 }
 
@@ -172,7 +169,7 @@ h720x_gpioe_demux_handler(unsigned int i
 
 	mask = CPU_REG(GPIO_E_VIRT,GPIO_STAT);
 	irq = IRQ_CHAINED_GPIOE(0);
-	IRQDBG("%s mask: 0x%08x irq: %d\n",__FUNCTION__,mask,irq);
+	IRQDBG("mask: 0x%08x irq: %d\n",mask,irq);
 	h720x_gpio_handler(mask, irq, desc, regs);
 }
 #endif

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