common/board_f.c: fix compile error when tracing disabled
authorKevin Hilman <khilman@linaro.org>
Tue, 9 Dec 2014 23:03:58 +0000 (15:03 -0800)
committerTom Rini <trini@ti.com>
Mon, 29 Dec 2014 21:31:23 +0000 (16:31 -0500)
When CONFIG_TRACE is disabled, linking fails with:

common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'

To fix, wrap the call to trace_early_init() with #ifdef CONFIG_TRACE.

Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
common/board_f.c

index 98c9c728ce7358b5efd42c5fb50d51d6da94296b..cfd77f865361b53feb3a2945ba6a589a1e62417b 100644 (file)
@@ -813,7 +813,9 @@ static init_fnc_t init_sequence_f[] = {
 #endif
        setup_mon_len,
        setup_fdt,
+#ifdef CONFIG_TRACE
        trace_early_init,
+#endif
        initf_malloc,
 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
        /* TODO: can this go into arch_cpu_init()? */