aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta/malta-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mti-malta/malta-int.c')
-rw-r--r--arch/mips/mti-malta/malta-int.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/mips/mti-malta/malta-int.c b/arch/mips/mti-malta/malta-int.c
index bc0ba58acfd5..a8756f82c31b 100644
--- a/arch/mips/mti-malta/malta-int.c
+++ b/arch/mips/mti-malta/malta-int.c
@@ -409,7 +409,7 @@ static struct gic_intr_map gic_intr_map[GIC_NUM_INTRS] = {
409/* 409/*
410 * GCMP needs to be detected before any SMP initialisation 410 * GCMP needs to be detected before any SMP initialisation
411 */ 411 */
412static int __init gcmp_probe(unsigned long addr, unsigned long size) 412int __init gcmp_probe(unsigned long addr, unsigned long size)
413{ 413{
414 if (gcmp_present >= 0) 414 if (gcmp_present >= 0)
415 return gcmp_present; 415 return gcmp_present;
@@ -449,14 +449,11 @@ static void __init fill_ipi_map(void)
449 449
450void __init arch_init_irq(void) 450void __init arch_init_irq(void)
451{ 451{
452 int gic_present, gcmp_present;
453
454 init_i8259_irqs(); 452 init_i8259_irqs();
455 453
456 if (!cpu_has_veic) 454 if (!cpu_has_veic)
457 mips_cpu_irq_init(); 455 mips_cpu_irq_init();
458 456
459 gcmp_present = gcmp_probe(GCMP_BASE_ADDR, GCMP_ADDRSPACE_SZ);
460 if (gcmp_present) { 457 if (gcmp_present) {
461 GCMPGCB(GICBA) = GIC_BASE_ADDR | GCMP_GCB_GICBA_EN_MSK; 458 GCMPGCB(GICBA) = GIC_BASE_ADDR | GCMP_GCB_GICBA_EN_MSK;
462 gic_present = 1; 459 gic_present = 1;