Skip to contentSkip to conversation

powerpc/mpic: support compiling with DEBUG enabled

PATCH New Dmitry Eremin-Solenikov 1 participant 1 message May 30, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/mpic: support compiling with DEBUG enabled

Support compilation of mpic.c with DEBUG defined, as now we have irq_desc and not irq number.

---
 arch/powerpc/sysdev/mpic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/mpic.c +1 -1
index 3a8de5b..3f995dc 100644
@@ -848,7 +848,7 @@ static void mpic_unmask_tm(struct irq_data *d)
 	struct mpic *mpic = mpic_from_irq_data(d);
 	unsigned int src = virq_to_hw(d->irq) - mpic->timer_vecs[0];
 
-	DBG("%s: enable_tm: %d (tm %d)\n", mpic->name, irq, src);
+	DBG("%s: enable_tm: %d (tm %d)\n", mpic->name, d->irq, src);
 	mpic_tm_write(src, mpic_tm_read(src) & ~MPIC_VECPRI_MASK);
 	mpic_tm_read(src);
 }
Signature · 1 line
1.7.4.4