aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2010-03-18 13:53:22 +0000
committerJohn Crispin <blogic@openwrt.org>2010-03-18 13:53:22 +0000
commit1b842526e972c0d7c1d10d820fd12812efb9883b (patch)
tree5a9c3bd37d3b5bee8034a15065ff066b57995c7a /target/linux/ifxmips/files
parent0d395f730d311dc267abe9c509825f05b301f680 (diff)
downloadupstream-1b842526e972c0d7c1d10d820fd12812efb9883b.tar.gz
upstream-1b842526e972c0d7c1d10d820fd12812efb9883b.tar.bz2
upstream-1b842526e972c0d7c1d10d820fd12812efb9883b.zip
[ifxmips] fixes board detection, signed off by Ithamar R. Adema
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20271 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files')
-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 6a17f60bd4..0f084a81b0 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)