summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2010-03-18 13:53:22 +0000
committerJohn Crispin <john@openwrt.org>2010-03-18 13:53:22 +0000
commit5abcf30366ad79756229fa5433247ff253821eda (patch)
treec2f8046b1b4fd0574d05b7e7fe231361b13f52a7 /target/linux
parent4fcee4628c22097de0062d6d84bf28dd04e57a9c (diff)
downloadmtk-20170518-5abcf30366ad79756229fa5433247ff253821eda.zip
mtk-20170518-5abcf30366ad79756229fa5433247ff253821eda.tar.gz
mtk-20170518-5abcf30366ad79756229fa5433247ff253821eda.tar.bz2
fixes board detection, signed off by Ithamar R. Adema
SVN-Revision: 20271
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ifxmips/files/arch/mips/ifxmips/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index 6a17f60..0f084a8 100644
--- a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
+++ b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
@@ -337,9 +337,10 @@ struct ifxmips_board *ifxmips_find_board(void)
int __init ifxmips_init_devices(void)
{
- struct ifxmips_board *board = ifxmips_find_board();
+ struct ifxmips_board *board;
chiprev = (ifxmips_r32(IFXMIPS_MPS_CHIPID) & 0x0FFFFFFF);
+ board = ifxmips_find_board();
ifxmips_brn = ifxmips_find_brn_block();
if (!cmdline_mac)