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 67be8f4..625d459 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