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

@ -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