Skip to content

Commit

Permalink
[MIPS] Remove mips_machtype from EMMA2RH machines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Bogendoerfer authored and Ralf Baechle committed Jul 15, 2008
1 parent c660729 commit 0b56fd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
15 changes: 7 additions & 8 deletions arch/mips/emma2rh/common/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions include/asm-mips/bootinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
#define MACH_LASAT_100 0 /* Masquerade II/SP100/SP50/SP25 */
#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */

/*
* Valid machtype for group NEC EMMA2RH
*/
#define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */

/*
* Valid machtype for group PMC-MSP
*/
Expand Down

0 comments on commit 0b56fd8

Please sign in to comment.