[1/3] clocksource/drivers/timer-microchip-pit64b: move COMPILE_TEST on type definition

Message ID 20230112114212.1161136-2-claudiu.beznea@microchip.com
State New
Headers
Series clocksource/drivers/timer-microchip-pit64b: add delay timer support |

Commit Message

Claudiu Beznea Jan. 12, 2023, 11:42 a.m. UTC
  Move COMPILE_TEST to menu type definition. This, along with commit
f611af4c3bfa ("ARM: at91: Kconfig: implement PIT64B selection") and the
next one in this series allows simply for driver to compile only on ARM
based platforms which allows further implementing delay timer on top of
PIT64B.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/clocksource/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 4469e7f555e9..0e87d478a2fa 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -705,8 +705,8 @@  config INGENIC_OST
 	  Support for the Operating System Timer of the Ingenic JZ SoCs.
 
 config MICROCHIP_PIT64B
-	bool "Microchip PIT64B support"
-	depends on OF || COMPILE_TEST
+	bool "Microchip PIT64B support" if COMPILE_TEST
+	depends on OF
 	select TIMER_OF
 	help
 	  This option enables Microchip PIT64B timer for Atmel