powerpc/mpic: Support compiling with DEBUG enabled
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Mon, 30 May 2011 01:56:09 +0000 (01:56 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 20 Jun 2011 01:21:44 +0000 (11:21 +1000)
Support compilation of mpic.c with DEBUG defined, as now we have irq_desc and
not irq number.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c

index 3a8de5bb628ae9483c0dec79ea5c22ae72b88bb0..3f995dcf95c915c3c44a8771cfcef211cd938bf4 100644 (file)
@@ -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);
 }