CLOCKSOURCE: versatile: Add PLAT_VERSATILE dependency
authorDeng-Cheng Zhu <[email protected]>
Sat, 7 Mar 2015 18:30:22 +0000 (10:30 -0800)
committerRalf Baechle <[email protected]>
Wed, 1 Apr 2015 15:21:26 +0000 (17:21 +0200)
GENERIC_SCHED_CLOCK can be selected by architectures other than ARM. The
current dependencies of CLKSRC_VERSATILE make it possible that other
architectures will have CLKSRC_VERSATILE available in configuration once
they select GENERIC_SCHED_CLOCK, whereas this clock source should be solely
available to ARM in reality.

This patch adds one more dependency to CLKSRC_VERSATILE to fix the issue.

Signed-off-by: Deng-Cheng Zhu <[email protected]>
Reported-by: Maciej W. Rozycki <[email protected]>
Cc: Russell King <[email protected]>
Cc: LKML <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9476/
Signed-off-by: Ralf Baechle <[email protected]>
drivers/clocksource/Kconfig

index 68161f7a07d6c8bef677fdd04bb2a1b20715a664..7e7146f735c6821afe5f79b6b7b75cfb1668b027 100644 (file)
@@ -230,7 +230,7 @@ config CLKSRC_QCOM
 
 config CLKSRC_VERSATILE
        bool "ARM Versatile (Express) reference platforms clock source"
-       depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
+       depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
        select CLKSRC_OF
        default y if MFD_VEXPRESS_SYSREG
        help