]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Fix g5 build with xmon
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Nov 2005 06:34:03 +0000 (17:34 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:50:38 +0000 (14:50 +1100)
My previous patches inadvertently broke building a G5 kernel with
CONFIG_XMON enabled. This fixes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/pic.c

index ff78eeac10f2b79625b0ac824d36d6e646df7642..a36527c981335e5690e007a42a0c60f82ac49b46 100644 (file)
@@ -459,7 +459,7 @@ void __init pmac_pic_init(void)
                        mpic_setup_cascade(irqctrler2->intrs[0].line,
                                           pmac_u3_cascade, mpic2);
                }
-#ifdef CONFIG_XMON
+#if defined(CONFIG_XMON) && defined(CONFIG_PPC32)
                {
                        struct device_node* pswitch;
                        int nmi_irq;
@@ -471,7 +471,7 @@ void __init pmac_pic_init(void)
                                setup_irq(nmi_irq, &xmon_action);
                        }
                }
-#endif /* CONFIG_XMON */
+#endif /* defined(CONFIG_XMON) && defined(CONFIG_PPC32) */
                return;
        }
        irqctrler = NULL;