diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-06-26 19:41:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-06-26 19:41:00 +0000 |
commit | 86e1d1978ecec8fabe24ec5ec792d7b1b0fa1389 (patch) | |
tree | fb88dfa0958c9c993a3d2c54ae4635bee36afceb /target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c | |
parent | a83ac994c3a6948ab83d8de78fc9d1ae55451fce (diff) | |
download | mtk-20170518-86e1d1978ecec8fabe24ec5ec792d7b1b0fa1389.zip mtk-20170518-86e1d1978ecec8fabe24ec5ec792d7b1b0fa1389.tar.gz mtk-20170518-86e1d1978ecec8fabe24ec5ec792d7b1b0fa1389.tar.bz2 |
calling of prom_detect_board is needed only when we still don't know the board
SVN-Revision: 7736
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c')
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c index 87e3d86..6d512f1 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/adm5120_info.c @@ -206,7 +206,7 @@ static struct adm5120_board __initdata adm5120_boards[] = { .name = "Infineon EASY 83000", .mach_type = MACH_ADM5120_EASY83000, .has_usb = 0, - .iface_num = 0, + .iface_num = 6, .flash0_size = 4*1024*1024, }, { @@ -880,7 +880,8 @@ static void __init adm5120_detect_board(void) if (t == MACH_ADM5120_UNKNOWN) t = uboot_detect_board(); } else { - t = prom_detect_board(); + if (t == MACH_ADM5120_UNKNOWN) + t = prom_detect_board(); } for (board = adm5120_boards; board->mach_type != MACH_ADM5120_UNKNOWN; |