powerpc: Use ARCH_IRQ_INIT_FLAGS
authorThomas Gleixner <tglx@linutronix.de>
Fri, 21 Jan 2011 06:12:28 +0000 (06:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 2 Mar 2011 05:50:24 +0000 (16:50 +1100)
Define the ARCH_IRQ_INIT_FLAGS instead of fixing it up in a loop.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hw_irq.h
arch/powerpc/kernel/irq.c

index ff08b70b36d4befb36139fadbe0cec54829096e8..bb712c9488b3c74bcfb6f36c47322044e9c0992d 100644 (file)
@@ -141,6 +141,8 @@ static inline bool arch_irqs_disabled(void)
 
 #endif /* CONFIG_PPC64 */
 
+#define ARCH_IRQ_INIT_FLAGS    IRQ_NOREQUEST
+
 /*
  * interrupt-retrigger: should we handle this via lost interrupts and IPIs
  * or should we not care like we do now ? --BenH.
index ce557f6f00fcf2817c38ad8821a2e7fc8c8394a4..0531ccda80053322e6dfbaeadbc0a3cb38e0e3d9 100644 (file)
@@ -1074,21 +1074,6 @@ void irq_free_virt(unsigned int virq, unsigned int count)
 
 int arch_early_irq_init(void)
 {
-       struct irq_desc *desc;
-       int i;
-
-       for (i = 0; i < NR_IRQS; i++) {
-               desc = irq_to_desc(i);
-               if (desc)
-                       desc->status |= IRQ_NOREQUEST;
-       }
-
-       return 0;
-}
-
-int arch_init_chip_data(struct irq_desc *desc, int node)
-{
-       desc->status |= IRQ_NOREQUEST;
        return 0;
 }