summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2008-07-13 19:51:55 +0900
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 18:44:37 +0100
commit7a1fdf1946b641f7c2866b3386414657eeb88084 (patch)
tree90255789a3f54a38338a749d69e124690486d8f8
parentb03d7b18fd783f39e31560d568e7db954f3080af (diff)
downloadlinux-7a1fdf1946b641f7c2866b3386414657eeb88084.tar.bz2
[MIPS] txx9_board_vec set directly without mips_machtype
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/txx9/generic/setup.c34
1 files changed, 8 insertions, 26 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 66ff74f80c6b..517828e1ec92 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -99,19 +99,6 @@ extern struct txx9_board_vec rbtx4927_vec;
extern struct txx9_board_vec rbtx4937_vec;
extern struct txx9_board_vec rbtx4938_vec;
-/* board definitions */
-static struct txx9_board_vec *board_vecs[] __initdata = {
-#ifdef CONFIG_TOSHIBA_JMR3927
- &jmr3927_vec,
-#endif
-#ifdef CONFIG_TOSHIBA_RBTX4927
- &rbtx4927_vec,
- &rbtx4937_vec,
-#endif
-#ifdef CONFIG_TOSHIBA_RBTX4938
- &rbtx4938_vec,
-#endif
-};
struct txx9_board_vec *txx9_board_vec __initdata;
static char txx9_system_type[32];
@@ -134,31 +121,26 @@ void __init prom_init_cmdline(void)
void __init prom_init(void)
{
- int i;
-
#ifdef CONFIG_CPU_TX39XX
- mips_machtype = MACH_TOSHIBA_JMR3927;
+ txx9_board_vec = &jmr3927_vec;
#endif
#ifdef CONFIG_CPU_TX49XX
switch (TX4938_REV_PCODE()) {
case 0x4927:
- mips_machtype = MACH_TOSHIBA_RBTX4927;
+ txx9_board_vec = &rbtx4927_vec;
break;
case 0x4937:
- mips_machtype = MACH_TOSHIBA_RBTX4937;
+ txx9_board_vec = &rbtx4937_vec;
break;
case 0x4938:
- mips_machtype = MACH_TOSHIBA_RBTX4938;
+ txx9_board_vec = &rbtx4938_vec;
break;
}
#endif
- for (i = 0; i < ARRAY_SIZE(board_vecs); i++) {
- if (board_vecs[i]->type == mips_machtype) {
- txx9_board_vec = board_vecs[i];
- strcpy(txx9_system_type, txx9_board_vec->system);
- return txx9_board_vec->prom_init();
- }
- }
+
+ strcpy(txx9_system_type, txx9_board_vec->system);
+
+ return txx9_board_vec->prom_init();
}
void __init prom_free_prom_memory(void)