soc: arm: stm32: Fix invalid Kconfig PM entry in defconfig file

The defconfig.series file for the stm32f4 incorrectly redefines
the PM Kconfig in order to select two dependencies, COUNTER and
COUNTER_RTC_STM32_SUBSECONDS, instead of setting a default for
them if PM is included.

This commit fixes the error described above.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
This commit is contained in:
Bjarki Arge Andreasen 2023-12-23 14:17:43 +01:00 committed by Carles Cufí
commit 01e94e0766

View file

@ -17,8 +17,14 @@ config TASK_WDT_HW_FALLBACK_DELAY
depends on TASK_WDT_HW_FALLBACK
default 200
config PM
select COUNTER
select COUNTER_RTC_STM32_SUBSECONDS if DT_HAS_ST_STM32_RTC_ENABLED
if PM
config COUNTER
default y
config COUNTER_RTC_STM32_SUBSECONDS
default y if DT_HAS_ST_STM32_RTC_ENABLED
endif # PM
endif # SOC_SERIES_STM32F4X