Skip to contentSkip to conversation

Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

PATCH In review Guenter Roeck 2 participants 2 messages Jun 15, 2016 – Jun 16, 2016 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6.

When trying to build parisc:allmodconfig:

drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt':
drivers/clocksource/timer-atmel-st.c:76:3: error:
invalid use of undefined type 'struct clock_event_device'

---
 drivers/clocksource/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/Kconfig +1 -3
index 0677e81af030..5a921dc913e5 100644
@@ -335,11 +335,9 @@ config ATMEL_PIT
 	def_bool SOC_AT91SAM9 || SOC_SAMA5
 
 config ATMEL_ST
-	bool "Atmel ST timer support" if COMPILE_TEST
+	bool
 	select CLKSRC_OF
 	select MFD_SYSCON
-	help
-	  Support for the Atmel ST timer.
 
 config CLKSRC_METAG_GENERIC
 	def_bool y if METAG
Signature · 1 line
2.5.0
#1 lore raw
Quoted 11 lines · Guenter Roeck

This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6.

When trying to build parisc:allmodconfig:

drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt':
drivers/clocksource/timer-atmel-st.c:76:3: error:
invalid use of undefined type 'struct clock_event_device'

---

Thanks for reporting the issue. I fixed this issue by adding

+depends on GENERIC_CLOCKEVENTS

instead of reverting the patch.

-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog