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

From: Claudiu Beznea
Date: Thu Jan 12 2023 - 06:53:22 EST


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@xxxxxxxxxxxxx>
---
drivers/clocksource/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

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
--
2.34.1