mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
drivers: watchdog: wdt-uclass: Use IS_ENABLED for WATCHDOG_AUTOSTART
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: 830d29ac37
("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>
This commit is contained in:
parent
aed2ebaa1f
commit
5fc0943513
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue