[patch 09/10] m68knommu: Use proper irq_desc accessors inshow_interrupts()

From: Thomas Gleixner
Date: Sun Feb 06 2011 - 18:39:44 EST


Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/m68knommu/kernel/irq.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Index: linux-next/arch/m68knommu/kernel/irq.c
===================================================================
--- linux-next.orig/arch/m68knommu/kernel/irq.c
+++ linux-next/arch/m68knommu/kernel/irq.c
@@ -38,11 +38,13 @@ int show_interrupts(struct seq_file *p,
seq_puts(p, " CPU0\n");

if (irq < NR_IRQS) {
- ap = irq_desc[irq].action;
+ struct irq_desc *desc = irq_to_desc(irq);
+
+ ap = desc->action;
if (ap) {
seq_printf(p, "%3d: ", irq);
seq_printf(p, "%10u ", kstat_irqs(irq));
- seq_printf(p, "%14s ", irq_desc[irq].chip->name);
+ seq_printf(p, "%14s ", get_irq_desc_chip(desc)->name);

seq_printf(p, "%s", ap->name);
for (ap = ap->next; ap; ap = ap->next)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/