diff options
Diffstat (limited to 'arch/mips/bcm47xx')
-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 b3ae068ca4fa..3fd369d74444 100644 --- a/arch/mips/bcm47xx/board.c +++ b/arch/mips/bcm47xx/board.c | |||
@@ -247,8 +247,8 @@ static __init const struct bcm47xx_board_type *bcm47xx_board_get_nvram(void) | |||
247 | } | 247 | } |
248 | 248 | ||
249 | if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && | 249 | if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && |
250 | bcm47xx_nvram_getenv("boardtype", buf2, sizeof(buf2)) >= 0) { | 250 | bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0) { |
251 | for (e2 = bcm47xx_board_list_boot_hw; e2->value1; e2++) { | 251 | for (e2 = bcm47xx_board_list_hw_version_num; e2->value1; e2++) { |
252 | if (!strstarts(buf1, e2->value1) && | 252 | if (!strstarts(buf1, e2->value1) && |
253 | !strcmp(buf2, e2->value2)) | 253 | !strcmp(buf2, e2->value2)) |
254 | return &e2->board; | 254 | return &e2->board; |