From 02655e5b15fe5bf06bcb00410c412c61ab645d5b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 20 Apr 2023 13:49:16 +0300 Subject: [PATCH] drivers: wdt_tco: Change init level from PRE_KERNEL_1 to POST_KERNEL All other watchdog drivers also use POST_KERNEL, and it seems on some platforms where the TCO watchdog is used not all dependencies are yet set up by the PRE_KERNEL_1 level. Signed-off-by: Johan Hedberg --- drivers/watchdog/wdt_tco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt_tco.c b/drivers/watchdog/wdt_tco.c index 8c6382ad4bb..bc0e95386f2 100644 --- a/drivers/watchdog/wdt_tco.c +++ b/drivers/watchdog/wdt_tco.c @@ -271,5 +271,5 @@ static const struct tco_config wdt_config = { }; DEVICE_DT_DEFINE(TCO_WDT_NODE, wdt_init, NULL, &wdt_data, &wdt_config, - PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, + POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &tco_driver_api);