clocksource/drivers/sun5i: Add the COMPILE_TEST option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 31 Oct 2015 16:01:46 +0000 (17:01 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:41:37 +0000 (09:41 +0100)
Increase the compilation test coverage by adding the COMPILE_TEST option.

The driver depends on the common clock framework, thus the dependency added
on COMMON_CLK.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/Kconfig

index 67be8f4057b4282aa9d311437ecda8f8bb2a4167..625d45943ca131870c92a82d84351689277bba85 100644 (file)
@@ -77,8 +77,11 @@ config SUN4I_TIMER
          Enables support for the Sun4i timer.
 
 config SUN5I_HSTIMER
+       bool "Sun5i timer driver" if COMPILE_TEST
        select CLKSRC_MMIO
-       bool
+       depends on COMMON_CLK
+       help
+         Enables support the Sun5i timer.
 
 config TEGRA_TIMER
        bool