drivers: watchdog: wdt_sam: use the generic disable option

Use the generic option WDT_DISABLE_AT_BOOT instead of the SAM specific
one WDT_SAM_DISABLE_AT_BOOT (note the generic one has been introduced
after the SAM one).

This also have the consequence of changing the default value for yes to
no, fixing the watchdog tests.

Fixes #13290

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2019-03-08 23:20:42 +01:00 committed by Anas Nashif
commit 2e01e86bdc
2 changed files with 1 additions and 8 deletions

View file

@ -12,10 +12,3 @@ menuconfig WDT_SAM
default y default y
help help
Enable WDT driver for Atmel SAM MCUs. Enable WDT driver for Atmel SAM MCUs.
config WDT_SAM_DISABLE_AT_BOOT
bool "Disable WDT during boot"
depends on WDT_SAM
default y
help
Select this option to disable the WDT during boot.

View file

@ -241,7 +241,7 @@ static void wdt_sam_irq_config(void)
static int wdt_sam_init(struct device *dev) static int wdt_sam_init(struct device *dev)
{ {
#ifdef CONFIG_WDT_SAM_DISABLE_AT_BOOT #ifdef CONFIG_WDT_DISABLE_AT_BOOT
wdt_sam_disable(dev); wdt_sam_disable(dev);
#endif #endif