diff mbox

[U-Boot,2/2] board_f: prevent misleading "Watchdog enabled" output

Message ID 1465820664-10004-2-git-send-email-agust@denx.de
State Accepted
Commit ba169d981f80517f057bf635df7e3dab203b9cea
Delegated to: Tom Rini
Headers show

Commit Message

Anatolij Gustschin June 13, 2016, 12:24 p.m. UTC
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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini July 16, 2016, 1:46 p.m. UTC | #1
On Mon, Jun 13, 2016 at 02:24:24PM +0200, Anatolij Gustschin wrote:

> Output the "Watchdog enabled" message only if hw_watchdog_init()
> call really happened.
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/board_f.c b/common/board_f.c
index 0e2e6bc..9f6e4cc 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -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;