common: board_f: Use IS_ENABLED(CONFIG_TIMER_EARLY) in initf_dm
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sat, 28 Nov 2020 08:43:05 +0000 (10:43 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:11 +0000 (14:36 -0500)
commit4b9a121fc6fa211a33b693851f55b60954635fce
treed7586db2fb58f033ed96bd323083519244e5b0f1
parent8e8d45ee0209f5362b40218bcc5ae172b214042e
common: board_f: Use IS_ENABLED(CONFIG_TIMER_EARLY) in initf_dm

Use IS_ENABLED(CONFIG_TIMER_EARLY) instead of #ifdef in initf_dm. Also,
move timer code to the main ifdef, so that ret is defined.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/board_f.c