From e4b62a8ce23f89b3af4b8cd26b5f74a2894f0fb8 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 3 Jun 2020 22:59:25 +0200 Subject: [PATCH] drivers: timer: lptim: depend on SYS_POWER_MANAGEMENT The LPTIM driver is supposed to be only available when the SoC is allowed to enter power sleep mode, as described in commit f30f5fff72e9 ("drivers: timer: lptim is [EXPERIMENTAL] for stm32 soc series only"). For that it should depends on SYS_POWER_MANAGEMENT (which gates the SYS_POWER_SLEEP_STATES and SYS_POWER_DEEP_SLEEP_STATES options) instead of DEVICE_POWER_MANAGEMENT. Fixes #25989 Signed-off-by: Aurelien Jarno --- drivers/timer/Kconfig.stm32_lptim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timer/Kconfig.stm32_lptim b/drivers/timer/Kconfig.stm32_lptim index 5ca504acbef..2d20ba8c9db 100644 --- a/drivers/timer/Kconfig.stm32_lptim +++ b/drivers/timer/Kconfig.stm32_lptim @@ -6,7 +6,7 @@ menuconfig STM32_LPTIM_TIMER bool "STM32 Low Power Timer [EXPERIMENTAL]" depends on (SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX) - depends on CLOCK_CONTROL && DEVICE_POWER_MANAGEMENT + depends on CLOCK_CONTROL && SYS_POWER_MANAGEMENT select TICKLESS_CAPABLE help This module implements a kernel device driver for the LowPower Timer