Skip to content

Commit

Permalink
drivers: watchdog: esp32: Use common Kconfig option to disable at boot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lpereira authored and MaureenHelm committed Jun 1, 2018
1 parent 61f91f8 commit eefeb2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions drivers/watchdog/Kconfig.esp32
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/wdt_esp32.c
Expand Up @@ -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

Expand Down

0 comments on commit eefeb2b

Please sign in to comment.