diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2008-07-14 15:54:30 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-15 18:44:39 +0100 |
commit | 0b56fd8c7abbf85baeecb77be25c54d3c7d11587 (patch) | |
tree | c57f1842cc1eafea04abb585be8a070b2af8fc0c /arch/mips | |
parent | c660729501894e0b88054ad4b66a5f98a1a2a37e (diff) | |
download | kernel_samsung_espresso10-0b56fd8c7abbf85baeecb77be25c54d3c7d11587.zip kernel_samsung_espresso10-0b56fd8c7abbf85baeecb77be25c54d3c7d11587.tar.gz kernel_samsung_espresso10-0b56fd8c7abbf85baeecb77be25c54d3c7d11587.tar.bz2 |
[MIPS] Remove mips_machtype from EMMA2RH machines
This is the EMMA2RH part of the mips_machtype removal.
[Ralf: Fixed to the #error statements]
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/emma2rh/common/prom.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/mips/emma2rh/common/prom.c b/arch/mips/emma2rh/common/prom.c index 0f791eb..5e92b3a 100644 --- a/arch/mips/emma2rh/common/prom.c +++ b/arch/mips/emma2rh/common/prom.c @@ -34,12 +34,11 @@ const char *get_system_type(void) { - switch (mips_machtype) { - case MACH_NEC_MARKEINS: - return "NEC EMMA2RH Mark-eins"; - default: - return "Unknown NEC board"; - } +#if defined(CONFIG_MARKEINS) + return "NEC EMMA2RH Mark-eins"; +#else +#error Unknown NEC board +#endif } /* [jsun@junsun.net] PMON passes arguments in C main() style */ @@ -63,10 +62,10 @@ void __init prom_init(void) } #if defined(CONFIG_MARKEINS) - mips_machtype = MACH_NEC_MARKEINS; add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); +#else +#error Unknown NEC board #endif - } void __init prom_free_prom_memory(void) |