diff options
author | Gabriel Fernandez <gabriel.fernandez@st.com> | 2018-05-03 02:40:09 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-05-15 18:47:03 -0400 |
commit | 9a160601f3fb6ffa196b87d1b5643646be486405 (patch) | |
tree | 395221f155bc39ee3ffd96f57b51445c9a0fbe42 | |
parent | 2e5be528ab0182ad4b42b9feea3b80f85f37179b (diff) |
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: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers")
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/Kconfig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 41492e980ef4..34968a381d0f 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig | |||
@@ -266,15 +266,13 @@ config COMMON_CLK_STM32MP157 | |||
266 | Support for stm32mp157 SoC family clocks | 266 | Support for stm32mp157 SoC family clocks |
267 | 267 | ||
268 | config COMMON_CLK_STM32F | 268 | config COMMON_CLK_STM32F |
269 | bool "Clock driver for stm32f4 and stm32f7 SoC families" | 269 | def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746) |
270 | depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746 | ||
271 | help | 270 | help |
272 | ---help--- | 271 | ---help--- |
273 | Support for stm32f4 and stm32f7 SoC families clocks | 272 | Support for stm32f4 and stm32f7 SoC families clocks |
274 | 273 | ||
275 | config COMMON_CLK_STM32H7 | 274 | config COMMON_CLK_STM32H7 |
276 | bool "Clock driver for stm32h7 SoC family" | 275 | def_bool COMMON_CLK && MACH_STM32H743 |
277 | depends on MACH_STM32H743 | ||
278 | help | 276 | help |
279 | ---help--- | 277 | ---help--- |
280 | Support for stm32h7 SoC family clocks | 278 | Support for stm32h7 SoC family clocks |