clocksource/drivers/pxa_timer: Move the Kconfig rule
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 9 Oct 2015 13:48:38 +0000 (15:48 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:41:17 +0000 (09:41 +0100)
Instead of having the clocksource's Kconfig depending on the arch, let the
arch to select the timer it needs.

The CLKSRC_OF dependency is removed because already selected by the
ARCH_PXA, and it is added for SA1100.

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

index 0365cbbc917989853d87b8a84c8409ae268d6e33..a5d416ec1d014b266f3ab4b328009c2085bcb6ff 100644 (file)
@@ -609,6 +609,7 @@ config ARCH_PXA
        select AUTO_ZRELADDR
        select COMMON_CLK
        select CLKDEV_LOOKUP
+       select CLKSRC_PXA
        select CLKSRC_MMIO
        select CLKSRC_OF
        select GENERIC_CLOCKEVENTS
@@ -648,6 +649,8 @@ config ARCH_SA1100
        select ARCH_SPARSEMEM_ENABLE
        select CLKDEV_LOOKUP
        select CLKSRC_MMIO
+       select CLKSRC_PXA
+       select CLKSRC_OF if OF
        select CPU_FREQ
        select CPU_SA1100
        select GENERIC_CLOCKEVENTS
index 4117386d8051db7de5c523fb713322fe8026be73..d4221e04868dc1f4f69606a3a1f7c64442407143 100644 (file)
@@ -307,8 +307,7 @@ config CLKSRC_TANGO_XTAL
        select CLKSRC_OF
 
 config CLKSRC_PXA
-       def_bool y if ARCH_PXA || ARCH_SA1100
-       select CLKSRC_OF if OF
+       bool
        help
          This enables OST0 support available on PXA and SA-11x0
          platforms.