aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-03-20 10:05:50 -0400
committerThomas Gleixner <tglx@linutronix.de>2014-03-22 06:29:29 -0400
commit87291a9267ecc0a8efceb4d9cbd4da870f958fc1 (patch)
tree97b80dd887e723ed530b5a306654ca02deeb684c /drivers/clocksource
parent6201b4d61fbf194df6371fb3376c5026cb8f5eec (diff)
clocksource: CMT, MTU2, TMU and STI should depend on GENERIC_CLOCKEVENTS
If GENERIC_CLOCKEVENTS=n: drivers/clocksource/sh_cmt.c:54:28: error: field 'ced' has incomplete type drivers/clocksource/sh_cmt.c: In function 'sh_cmt_interrupt': drivers/clocksource/sh_cmt.c:407:23: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function) drivers/clocksource/sh_mtu2.c:44:28: error: field 'ced' has incomplete type drivers/clocksource/sh_mtu2.c: In function 'ced_to_sh_mtu2': drivers/clocksource/sh_mtu2.c:184:70: warning: initialization from incompatible pointer type [enabled by default] drivers/clocksource/sh_mtu2.c: At top level: drivers/clocksource/sh_mtu2.c:188:16: warning: 'enum clock_event_mode' declared inside parameter list [enabled by default] drivers/clocksource/sh_tmu.c:45:28: error: field 'ced' has incomplete type drivers/clocksource/sh_tmu.c: In function 'sh_tmu_interrupt': drivers/clocksource/sh_tmu.c:207:21: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function) drivers/clocksource/em_sti.c:44:28: error: field 'ced' has incomplete type drivers/clocksource/em_sti.c: In function 'ced_to_em_sti': drivers/clocksource/em_sti.c:251:69: warning: initialization from incompatible pointer type [enabled by default] drivers/clocksource/em_sti.c: At top level: drivers/clocksource/em_sti.c:255:16: warning: 'enum clock_event_mode' declared inside parameter list [enabled by default] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: Magnus Damm <damm@opensource.se> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Link: http://lkml.kernel.org/r/1395324352-9146-1-git-send-email-geert@linux-m68k.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 4f754a972139..52e9329e3c51 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -155,6 +155,7 @@ config SYS_SUPPORTS_EM_STI
155 155
156config SH_TIMER_CMT 156config SH_TIMER_CMT
157 bool "Renesas CMT timer driver" if COMPILE_TEST 157 bool "Renesas CMT timer driver" if COMPILE_TEST
158 depends on GENERIC_CLOCKEVENTS
158 default SYS_SUPPORTS_SH_CMT 159 default SYS_SUPPORTS_SH_CMT
159 help 160 help
160 This enables build of a clocksource and clockevent driver for 161 This enables build of a clocksource and clockevent driver for
@@ -163,6 +164,7 @@ config SH_TIMER_CMT
163 164
164config SH_TIMER_MTU2 165config SH_TIMER_MTU2
165 bool "Renesas MTU2 timer driver" if COMPILE_TEST 166 bool "Renesas MTU2 timer driver" if COMPILE_TEST
167 depends on GENERIC_CLOCKEVENTS
166 default SYS_SUPPORTS_SH_MTU2 168 default SYS_SUPPORTS_SH_MTU2
167 help 169 help
168 This enables build of a clockevent driver for the Multi-Function 170 This enables build of a clockevent driver for the Multi-Function
@@ -171,6 +173,7 @@ config SH_TIMER_MTU2
171 173
172config SH_TIMER_TMU 174config SH_TIMER_TMU
173 bool "Renesas TMU timer driver" if COMPILE_TEST 175 bool "Renesas TMU timer driver" if COMPILE_TEST
176 depends on GENERIC_CLOCKEVENTS
174 default SYS_SUPPORTS_SH_TMU 177 default SYS_SUPPORTS_SH_TMU
175 help 178 help
176 This enables build of a clocksource and clockevent driver for 179 This enables build of a clocksource and clockevent driver for
@@ -179,6 +182,7 @@ config SH_TIMER_TMU
179 182
180config EM_TIMER_STI 183config EM_TIMER_STI
181 bool "Renesas STI timer driver" if COMPILE_TEST 184 bool "Renesas STI timer driver" if COMPILE_TEST
185 depends on GENERIC_CLOCKEVENTS
182 default SYS_SUPPORTS_EM_STI 186 default SYS_SUPPORTS_EM_STI
183 help 187 help
184 This enables build of a clocksource and clockevent driver for 188 This enables build of a clocksource and clockevent driver for