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:
Leandro Pereira 2018-06-01 12:30:18 -07:00 committed by Maureen Helm
commit eefeb2b050
2 changed files with 1 additions and 8 deletions

View file

@ -12,13 +12,6 @@ menuconfig WDT_ESP32
help help
Enable WDT driver for ESP32. 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 config WDT_ESP32_DEVICE_NAME
string "Device name for Watchdog (WDT)" string "Device name for Watchdog (WDT)"
depends on WDT_ESP32 depends on WDT_ESP32

View file

@ -206,7 +206,7 @@ static int wdt_esp32_init(struct device *dev)
memset(&data->config, 0, sizeof(data->config)); memset(&data->config, 0, sizeof(data->config));
#ifdef CONFIG_ESP32_DISABLE_AT_BOOT #ifdef CONFIG_WDT_DISABLE_AT_BOOT
wdt_esp32_disable(dev); wdt_esp32_disable(dev);
#endif #endif