drivers: watchdog: esp32: Use common Kconfig option to disable at boot
Instead of relying on CONFIG_WDT_ESP32_DISABLE_AT_BOOT, use CONFIG_WDT_DISABLE_AT_BOOT that's available for all watchdog timers. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
61f91f8fec
commit
eefeb2b050
2 changed files with 1 additions and 8 deletions
|
@ -12,13 +12,6 @@ menuconfig WDT_ESP32
|
|||
help
|
||||
Enable WDT driver for ESP32.
|
||||
|
||||
config WDT_ESP32_DISABLE_AT_BOOT
|
||||
bool "Disable WDT during boot"
|
||||
depends on WDT_ESP32
|
||||
default y
|
||||
help
|
||||
Select this option to disable the WDT during boot.
|
||||
|
||||
config WDT_ESP32_DEVICE_NAME
|
||||
string "Device name for Watchdog (WDT)"
|
||||
depends on WDT_ESP32
|
||||
|
|
|
@ -206,7 +206,7 @@ static int wdt_esp32_init(struct device *dev)
|
|||
|
||||
memset(&data->config, 0, sizeof(data->config));
|
||||
|
||||
#ifdef CONFIG_ESP32_DISABLE_AT_BOOT
|
||||
#ifdef CONFIG_WDT_DISABLE_AT_BOOT
|
||||
wdt_esp32_disable(dev);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue