Skip to content

Commit 9a16060

Browse files
Gabriel-Fernandez-stmbebarino
authored andcommitted
clk: stm32: fix: stm32 clock drivers are not compiled by default
Clock driver is mandatory if the machine is selected. Then don't use 'bool' and 'depends on' commands, but 'def_bool' with the machine(s). Fixes: da32d35 ("clk: stm32: add configuration flags for each of the stm32 drivers") Signed-off-by: Gabriel Fernandez <[email protected]> Acked-by: Alexandre TORGUE <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 2e5be52 commit 9a16060

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/clk/Kconfig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,13 @@ config COMMON_CLK_STM32MP157
266266
Support for stm32mp157 SoC family clocks
267267

268268
config COMMON_CLK_STM32F
269-
bool "Clock driver for stm32f4 and stm32f7 SoC families"
270-
depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746
269+
def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
271270
help
272271
---help---
273272
Support for stm32f4 and stm32f7 SoC families clocks
274273

275274
config COMMON_CLK_STM32H7
276-
bool "Clock driver for stm32h7 SoC family"
277-
depends on MACH_STM32H743
275+
def_bool COMMON_CLK && MACH_STM32H743
278276
help
279277
---help---
280278
Support for stm32h7 SoC family clocks

0 commit comments

Comments
 (0)