Move fdt check earlier so that board_early_init_f() can use it

We want to use the fdt inside board_early_init_f(), so check for its
presence earlier in the pre-reloc init sequence.

BUG=chromium-os:23496
TEST=build and boot on Seaboard, T33, Kaen
Change-Id: I66fdaf976ddb419b754cc20374db4ffdcca16a09
Reviewed-on: https://gerrit.chromium.org/gerrit/12247
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index fb05b8d..a204e90 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -252,12 +252,12 @@
 #if defined(CONFIG_ARCH_CPU_INIT)
 	arch_cpu_init,		/* basic arch cpu dependent setup */
 #endif
-#if defined(CONFIG_BOARD_EARLY_INIT_F)
-	board_early_init_f,
-#endif
 #ifdef CONFIG_OF_CONTROL
 	check_fdt,
 #endif
+#if defined(CONFIG_BOARD_EARLY_INIT_F)
+	board_early_init_f,
+#endif
 	timer_init,		/* initialize timer */
 #ifdef CONFIG_FSL_ESDHC
 	get_clocks,