diff mbox

[05/06] sh: Let INTC set IRQF_VALID on ARM platforms V2

Message ID 20100205111525.17065.35884.sendpatchset@rxone.opensource.se (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm Feb. 5, 2010, 11:15 a.m. UTC
None
diff mbox

Patch

--- 0001/drivers/sh/intc.c
+++ work/drivers/sh/intc.c	2010-02-05 14:11:53.000000000 +0900
@@ -658,6 +658,10 @@  static void __init intc_register_irq(str
 
 	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,
@@ -906,8 +910,12 @@  unsigned int create_irq_nr(unsigned int 
 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;
 }