]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: sl28: fix linking with disabled watchdog
authorMichael Walle <mwalle@kernel.org>
Fri, 13 Dec 2024 10:23:17 +0000 (11:23 +0100)
committerPeng Fan <peng.fan@nxp.com>
Sun, 15 Dec 2024 01:00:31 +0000 (09:00 +0800)
commit781a7c660cee194566d8e21f20c156e40bcea322
tree5ddde48f616160130bf042674b86f2fe8fde561c
parent88bd5701efdc48048e030d91c2633048f0f753a0
board: sl28: fix linking with disabled watchdog

We don't have a reference to the driver used by
uclass_get_device_by_driver() in stop_recovery_watchdog(). Fix it by not
calling that function if the watchdog driver isn't enabled.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/kontron/sl28/sl28.c