[KJ] [PATCH 03/72] arm: add KERN_ constants to
arch/arm/mach-h720x/common.c
James Nelson
james4765 at gmail.com
Thu Sep 7 18:56:44 PDT 2006
Signed-off-by: James Nelson <james4765 at gmail.com>
---
diff --git a/arch/arm/mach-h720x/common.c b/arch/arm/mach-h720x/common.c
index c096b45..2b74d79 100644
--- a/arch/arm/mach-h720x/common.c
+++ b/arch/arm/mach-h720x/common.c
@@ -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
More information about the Kernel-janitors
mailing list