summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2014-12-09 15:03:58 -0800
committerTom Rini <trini@ti.com>2014-12-29 16:31:23 -0500
commitd210718d9a184c5b00b7ee729e746ff8be5570bb (patch)
treee118112606711d00384ec38e4e7f86aa4ce1358c /common
parent4d013d8fa8863efb2d4264e1245a61a1a473c80c (diff)
downloadu-boot-imx-d210718d9a184c5b00b7ee729e746ff8be5570bb.zip
u-boot-imx-d210718d9a184c5b00b7ee729e746ff8be5570bb.tar.gz
u-boot-imx-d210718d9a184c5b00b7ee729e746ff8be5570bb.tar.bz2
common/board_f.c: fix compile error when tracing disabled
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>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 98c9c72..cfd77f8 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -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()? */