board_f: prevent misleading "Watchdog enabled" output
authorAnatolij Gustschin <agust@denx.de>
Mon, 13 Jun 2016 12:24:24 +0000 (14:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:33:09 +0000 (18:33 -0400)
Output the "Watchdog enabled" message only if hw_watchdog_init()
call really happened.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/board_f.c

index 05f6026..8d936cc 100644 (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;