[PATCH] genirq: add irq-chip support
[pandora-kernel.git] / kernel / irq / spurious.c
index ca187b8..b483dee 100644 (file)
@@ -79,7 +79,7 @@ static int misrouted_irq(int irq, struct pt_regs *regs)
                 * If we did actual work for the real IRQ line we must let the
                 * IRQ controller clean up too
                 */
-               if (work)
+               if (work && desc->chip && desc->chip->end)
                        desc->chip->end(i);
                spin_unlock(&desc->lock);
        }