From 2b070b217add4afdbc9e480526767cab6cbcbe93 Mon Sep 17 00:00:00 2001 From: blogic Date: Thu, 18 Mar 2010 13:53:22 +0000 Subject: [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 --- target/linux/ifxmips/files/arch/mips/ifxmips/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target/linux') diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c index 6a17f60bd..0f084a81b 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) -- cgit v1.2.3