]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Remove always true ifdef conditions.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:34 +0000 (18:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:34 +0000 (18:44 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Makefile
arch/mips/configs/malta_defconfig
arch/mips/mips-boards/generic/memory.c
arch/mips/mips-boards/generic/reset.c
arch/mips/mips-boards/generic/time.c

index 800a73db822a08b859d40f74b48e71e74da0da8d..ed8821ac8a8e827add2fb100e2707ed13617100f 100644 (file)
@@ -304,15 +304,11 @@ core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/
 load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000
 cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
 
-#
-# For all MIPS, Inc. eval boards
-#
-core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/
-
 #
 # MIPS Malta board
 #
-core-$(CONFIG_MIPS_MALTA)      += arch/mips/mips-boards/malta/
+core-$(CONFIG_MIPS_MALTA)      += arch/mips/mips-boards/generic/       \
+                                  arch/mips/mips-boards/malta/
 cflags-$(CONFIG_MIPS_MALTA)    += -Iinclude/asm-mips/mach-mips
 load-$(CONFIG_MIPS_MALTA)      += 0xffffffff80100000
 all-$(CONFIG_MIPS_MALTA)       := vmlinux.bin
index 55288cf50b72d712a941907026fbeab56387a26e..74daa0cf87e6800cea3a7c3e71b7bf8b9801e5d5 100644 (file)
@@ -66,7 +66,6 @@ CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
 CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
 CONFIG_IRQ_CPU=y
-CONFIG_MIPS_BOARDS_GEN=y
 CONFIG_PCI_GT64XXX_PCI0=y
 CONFIG_SWAP_IO_SPACE=y
 CONFIG_BOOT_ELF32=y
index 5e443bba5662e4ce1fbc0d5a7531f4b530af0417..61888ff72c87ce7bb56c3ea6c269f9a8a801ce8d 100644 (file)
@@ -97,7 +97,6 @@ static struct prom_pmemblock * __init prom_getmdesc(void)
        mdesc[1].base = 0x00001000;
        mdesc[1].size = 0x000ef000;
 
-#ifdef CONFIG_MIPS_MALTA
        /*
         * The area 0x000f0000-0x000fffff is allocated for BIOS memory by the
         * south bridge and PCI access always forwarded to the ISA Bus and
@@ -108,11 +107,6 @@ static struct prom_pmemblock * __init prom_getmdesc(void)
        mdesc[2].type = yamon_dontuse;
        mdesc[2].base = 0x000f0000;
        mdesc[2].size = 0x00010000;
-#else
-       mdesc[2].type = yamon_prom;
-       mdesc[2].base = 0x000f0000;
-       mdesc[2].size = 0x00010000;
-#endif
 
        mdesc[3].type = yamon_dontuse;
        mdesc[3].base = 0x00100000;
index ea932b843962374aefbd9eb0e36175195f54846e..42dee4da37bad5ad5d0b2932b475bf99577d9e2c 100644 (file)
@@ -52,7 +52,5 @@ void mips_reboot_setup(void)
 {
        _machine_restart = mips_machine_restart;
        _machine_halt = mips_machine_halt;
-#ifdef CONFIG_MIPS_MALTA
        pm_power_off = mips_machine_halt;
-#endif
 }
index 744dbfc6e4840979bc4576a17b441551c33c3a95..0b97d47691fc92398b3ecb0fdee70bcd7df5d3d9 100644 (file)
@@ -42,9 +42,7 @@
 #include <asm/mips-boards/generic.h>
 #include <asm/mips-boards/prom.h>
 
-#ifdef CONFIG_MIPS_MALTA
 #include <asm/mips-boards/maltaint.h>
-#endif
 
 unsigned long cpu_khz;
 
@@ -70,7 +68,6 @@ static unsigned int __init estimate_cpu_frequency(void)
        unsigned int prid = read_c0_prid() & 0xffff00;
        unsigned int count;
 
-#ifdef CONFIG_MIPS_MALTA
        unsigned long flags;
        unsigned int start;
 
@@ -91,7 +88,6 @@ static unsigned int __init estimate_cpu_frequency(void)
 
        /* restore interrupts */
        local_irq_restore(flags);
-#endif
 
        mips_hpt_frequency = count;
        if ((prid != (PRID_COMP_MIPS | PRID_IMP_20KC)) &&