diff options
Diffstat (limited to 'zephyr/drivers/cros_flash/cros_flash_it8xxx2.c')
-rw-r--r-- | zephyr/drivers/cros_flash/cros_flash_it8xxx2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c b/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c index 79ef0c36b2..2d34a21523 100644 --- a/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c +++ b/zephyr/drivers/cros_flash/cros_flash_it8xxx2.c @@ -180,7 +180,7 @@ static int cros_flash_it8xxx2_write(const struct device *dev, int offset, * chance to go back to hook task to touch watchdog. Reload watchdog * on each flash write to prevent the reset. */ - if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG)) + if (IS_ENABLED(CONFIG_WATCHDOG)) watchdog_reload(); return flash_write(flash_controller, offset, src_data, size); @@ -223,7 +223,7 @@ static int cros_flash_it8xxx2_erase(const struct device *dev, int offset, * If requested erase size is too large at one time on KGD * flash, we need to reload watchdog to prevent the reset. */ - if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG) && (size > 0x10000)) + if (IS_ENABLED(CONFIG_WATCHDOG) && (size > 0x10000)) watchdog_reload(); } /* Restore interrupts */ |