diff options
Diffstat (limited to 'arch/mips/bcm47xx/board.c')
-rw-r--r-- | arch/mips/bcm47xx/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/bcm47xx/board.c b/arch/mips/bcm47xx/board.c index 41b9736c3c05..bd56415f2f3b 100644 --- a/arch/mips/bcm47xx/board.c +++ b/arch/mips/bcm47xx/board.c | |||
@@ -235,8 +235,8 @@ static __init const struct bcm47xx_board_type *bcm47xx_board_get_nvram(void) | |||
235 | } | 235 | } |
236 | 236 | ||
237 | if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && | 237 | if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && |
238 | bcm47xx_nvram_getenv("boardtype", buf2, sizeof(buf2)) >= 0) { | 238 | bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0) { |
239 | for (e2 = bcm47xx_board_list_boot_hw; e2->value1; e2++) { | 239 | for (e2 = bcm47xx_board_list_hw_version_num; e2->value1; e2++) { |
240 | if (!strstarts(buf1, e2->value1) && | 240 | if (!strstarts(buf1, e2->value1) && |
241 | !strcmp(buf2, e2->value2)) | 241 | !strcmp(buf2, e2->value2)) |
242 | return &e2->board; | 242 | return &e2->board; |