]> git.sur5r.net Git - u-boot/commit
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)
commitd210718d9a184c5b00b7ee729e746ff8be5570bb
treee118112606711d00384ec38e4e7f86aa4ce1358c
parent4d013d8fa8863efb2d4264e1245a61a1a473c80c
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>
common/board_f.c