[ifxmips] fixes board detection, signed off by Ithamar R. Adema
authorJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 13:53:22 +0000 (13:53 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 13:53:22 +0000 (13:53 +0000)
SVN-Revision: 20271

target/linux/ifxmips/files/arch/mips/ifxmips/board.c

index 6a17f60bd4b09e06672051ebda88391d1f0edfd6..0f084a81b000398e495433e7aaf62ed5a67dd391 100644 (file)
@@ -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)