]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
x86: DT: Cleanup namespace and call irq_set_irq_type() unconditional
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2011 20:41:57 +0000 (21:41 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2011 22:17:56 +0000 (23:17 +0100)
That call escaped the name space cleanup. Fix it up.

We really want to call there. The chip might have changed since the
irq was setup initially. So let the core code and the chip decide what
to do. The status is just an unreliable snapshot.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
arch/x86/kernel/devicetree.c

index 9c91badb6ca9a82d1b78232fcae7bc9f546a5b2d..706a9fb46a58785edef3632d2dcfc5d02ac6404f 100644 (file)
@@ -68,9 +68,7 @@ unsigned int irq_create_of_mapping(struct device_node *controller,
                return 0;
        if (type == IRQ_TYPE_NONE)
                return virq;
-       /* set the mask if it is different from current */
-       if (type == (irq_to_desc(virq)->status & IRQF_TRIGGER_MASK))
-               set_irq_type(virq, type);
+       irq_set_irq_type(virq, type);
        return virq;
 }
 EXPORT_SYMBOL_GPL(irq_create_of_mapping);