]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: Show error message when initr_watchdog() cannot start watchdog
authorPali Rohár <pali@kernel.org>
Tue, 9 Mar 2021 13:26:55 +0000 (14:26 +0100)
committerStefan Roese <sr@denx.de>
Tue, 6 Apr 2021 08:47:32 +0000 (10:47 +0200)
commit25e20e347ed83d3629d65a7c5a6c376bacc1db0d
tree9200fa343876ae73cf79e5da91c8124eaab1f1b0
parent9c44ff1c5f3c06ecaa165c75e2ba0f4a718d917b
watchdog: Show error message when initr_watchdog() cannot start watchdog

Function wdt_start() may fail. So in initr_watchdog() function check return
value of wdt_start() call and print error message when watchdog starting
failed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/wdt-uclass.c