diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-08-07 08:49:23 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-08-07 08:49:23 +0000 |
commit | 96677f8beb69058f2f56cc5566e0af02100b27f4 (patch) | |
tree | 3f6be17d8e34e0a36b5270707575d149856cc706 /target/linux/adm5120/files/arch/mips | |
parent | 7f8329b8610f245fc0daf66df8e33441ad9b0365 (diff) | |
download | master-187ad058-96677f8beb69058f2f56cc5566e0af02100b27f4.tar.gz master-187ad058-96677f8beb69058f2f56cc5566e0af02100b27f4.tar.bz2 master-187ad058-96677f8beb69058f2f56cc5566e0af02100b27f4.zip |
[adm5120] add alternative board id for the ZyXEL P-334WT
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12232 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/arch/mips')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/adm5120/prom.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/prom.c b/target/linux/adm5120/files/arch/mips/adm5120/prom.c index 4ea9a6fdca..7d61490ca2 100644 --- a/target/linux/adm5120/files/arch/mips/adm5120/prom.c +++ b/target/linux/adm5120/files/arch/mips/adm5120/prom.c @@ -137,6 +137,7 @@ static struct { ZYXEL_BOARD(ZYNOS_BOARD_P334WH, MACH_ADM5120_P334WH), ZYXEL_BOARD(ZYNOS_BOARD_P334WHD, MACH_ADM5120_P334WHD), ZYXEL_BOARD(ZYNOS_BOARD_P334WT, MACH_ADM5120_P334WT), + ZYXEL_BOARD(ZYNOS_BOARD_P334WT_ALT, MACH_ADM5120_P334WT), ZYXEL_BOARD(ZYNOS_BOARD_P335, MACH_ADM5120_P335), ZYXEL_BOARD(ZYNOS_BOARD_P335PLUS, MACH_ADM5120_P335PLUS), ZYXEL_BOARD(ZYNOS_BOARD_P335U, MACH_ADM5120_P335U) @@ -144,19 +145,19 @@ static struct { static unsigned long __init detect_machtype_bootbase(void) { - unsigned long ret; int i; - ret = MACH_ADM5120_GENERIC; for (i = 0; i < ARRAY_SIZE(zynos_boards); i++) { if (zynos_boards[i].vendor_id == bootbase_info.vendor_id && zynos_boards[i].board_id == bootbase_info.board_id) { - ret = zynos_boards[i].mach_type; + return zynos_boards[i].mach_type; break; } } - return ret; + printk(KERN_WARNING "Unknown ZyXEL model (%u)\n", + bootbase_info.board_id); + return MACH_ADM5120_GENERIC; } static struct { |