Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65a5b28f authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

sh: Let INTC set IRQF_VALID on ARM platforms.



Reuse the SuperH INTC code on ARM by using set_irq_flags()
to set IRQF_VALID on ARM platforms.

Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 13d605de
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -658,6 +658,10 @@ static void __init intc_register_irq(struct intc_desc *desc,

	if (desc->ack_regs)
		ack_handle[irq] = intc_ack_data(desc, d, enum_id);

#ifdef CONFIG_ARM
	set_irq_flags(irq, IRQF_VALID); /* Enable IRQ on ARM systems */
#endif
}

static unsigned int __init save_reg(struct intc_desc_int *d,
@@ -902,8 +906,12 @@ static unsigned int create_irq_on_node(unsigned int irq_want, int node)
out_unlock:
	spin_unlock_irqrestore(&vector_lock, flags);

	if (irq > 0)
	if (irq > 0) {
		dynamic_irq_init(irq);
#ifdef CONFIG_ARM
		set_irq_flags(irq, IRQF_VALID); /* Enable IRQ on ARM systems */
#endif
	}

	return irq;
}