Commit 07611dbd authored by Thomas Gleixner's avatar Thomas Gleixner

x86: DT: Cleanup namespace and call irq_set_irq_type() unconditional

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: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
parent 00a30b25
...@@ -68,9 +68,7 @@ unsigned int irq_create_of_mapping(struct device_node *controller, ...@@ -68,9 +68,7 @@ unsigned int irq_create_of_mapping(struct device_node *controller,
return 0; return 0;
if (type == IRQ_TYPE_NONE) if (type == IRQ_TYPE_NONE)
return virq; return virq;
/* set the mask if it is different from current */ irq_set_irq_type(virq, type);
if (type == (irq_to_desc(virq)->status & IRQF_TRIGGER_MASK))
set_irq_type(virq, type);
return virq; return virq;
} }
EXPORT_SYMBOL_GPL(irq_create_of_mapping); EXPORT_SYMBOL_GPL(irq_create_of_mapping);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment