From be7ba8de2fdef858152092df620fd82981659d50 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 31 Aug 2009 18:53:34 +0000 Subject: [ramips] share machine registration code git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17456 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c') diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c index 8f5ddf200..774291ab7 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/prom.c @@ -14,14 +14,13 @@ #include #include +#include #include #include -#include "machine.h" - struct board_rec { char *name; - enum rt305x_mach_type mach_type; + enum ramips_mach_type mach_type; }; static int rt305x_prom_argc __initdata; @@ -31,7 +30,7 @@ static char **rt305x_prom_envp __initdata; static struct board_rec boards[] __initdata = { { .name = "WHR-G300N", - .mach_type = RT305X_MACH_WHR_G300N, + .mach_type = RAMIPS_MACH_WHR_G300N, } }; @@ -113,11 +112,9 @@ static __init void find_board_byname(char *name) { int i; - rt305x_mach = RT305X_MACH_GENERIC; - for (i = 0; i < ARRAY_SIZE(boards); i++) if (strcmp(name, boards[i].name) == 0) { - rt305x_mach = boards[i].mach_type; + ramips_mach = boards[i].mach_type; break; } } -- cgit v1.2.3