]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: watchdog: wdt-uclass: Use IS_ENABLED for WATCHDOG_AUTOSTART
authorTeresa Remmet <t.remmet@phytec.de>
Thu, 15 Jul 2021 11:26:32 +0000 (13:26 +0200)
committerStefan Roese <sr@denx.de>
Fri, 16 Jul 2021 08:28:35 +0000 (10:28 +0200)
There is no separate SPL/TPL config for WATCHDOG_AUTOSTART.
So use IS_ENABLED instead of CONFIG_IS_ENABLED to make watchdog
working in SPL again.

Fixes: 830d29ac3721 ("watchdog: Allow to use CONFIG_WDT without starting watchdog")
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/wdt-uclass.c

index a0c2429e5a43d7a73a4aecf9f868b66acc7edb87..17334dbda6c981f5a312f8dce432dcfd6986241b 100644 (file)
@@ -53,7 +53,7 @@ int initr_watchdog(void)
                                                    4 * reset_period) / 4;
        }
 
-       if (!CONFIG_IS_ENABLED(WATCHDOG_AUTOSTART)) {
+       if (!IS_ENABLED(CONFIG_WATCHDOG_AUTOSTART)) {
                printf("WDT:   Not starting\n");
                return 0;
        }