diff options
author | Kumar Gala <galak@freescale.com> | 2005-05-28 18:52:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-28 19:46:16 -0400 |
commit | 6cf2b3fc9934a56ceeb393ea5d0149e0bebc80fa (patch) | |
tree | 2caecc37d7dbb75102e2df617ed8e5674f797cbe /arch/ppc/platforms/85xx | |
parent | f9e4a005827ec0b33f0c61fec1634a5a3421decd (diff) |
[PATCH] ppc32: i8259 PIC should not be initialized if PCI is not configured
Trying to initialize the i8259 PIC will not work if CONFIG_PCI is not
enabled. The kernel hangs if the initialization is tried.
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/platforms/85xx')
-rw-r--r-- | arch/ppc/platforms/85xx/mpc85xx_cds_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/platforms/85xx/mpc85xx_cds_common.c b/arch/ppc/platforms/85xx/mpc85xx_cds_common.c index 3ac0321eed03..e7cfa498568c 100644 --- a/arch/ppc/platforms/85xx/mpc85xx_cds_common.c +++ b/arch/ppc/platforms/85xx/mpc85xx_cds_common.c | |||
@@ -200,12 +200,14 @@ mpc85xx_cds_init_IRQ(void) | |||
200 | */ | 200 | */ |
201 | openpic_init(MPC85xx_OPENPIC_IRQ_OFFSET); | 201 | openpic_init(MPC85xx_OPENPIC_IRQ_OFFSET); |
202 | 202 | ||
203 | #ifdef CONFIG_PCI | ||
203 | openpic_hookup_cascade(PIRQ0A, "82c59 cascade", i8259_irq); | 204 | openpic_hookup_cascade(PIRQ0A, "82c59 cascade", i8259_irq); |
204 | 205 | ||
205 | for (i = 0; i < NUM_8259_INTERRUPTS; i++) | 206 | for (i = 0; i < NUM_8259_INTERRUPTS; i++) |
206 | irq_desc[i].handler = &i8259_pic; | 207 | irq_desc[i].handler = &i8259_pic; |
207 | 208 | ||
208 | i8259_init(0); | 209 | i8259_init(0); |
210 | #endif | ||
209 | 211 | ||
210 | #ifdef CONFIG_CPM2 | 212 | #ifdef CONFIG_CPM2 |
211 | /* Setup CPM2 PIC */ | 213 | /* Setup CPM2 PIC */ |