board_f: prevent misleading "Watchdog enabled" output

Output the "Watchdog enabled" message only if hw_watchdog_init()
call really happened.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
Anatolij Gustschin 2016-06-13 14:24:24 +02:00 committed by Tom Rini
parent 46d7a3b3d3
commit ba169d981f

View File

@ -120,8 +120,8 @@ static int init_func_watchdog_init(void)
defined(CONFIG_DESIGNWARE_WATCHDOG) || \
defined(CONFIG_IMX_WATCHDOG))
hw_watchdog_init();
# endif
puts(" Watchdog enabled\n");
# endif
WATCHDOG_RESET();
return 0;