Skip to contentSkip to conversation

clocksource: ti-dmtimer: select TIMER_OF when needed

PATCH New Arnd Bergmann 1 participant 1 message Sep 27, 2021 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: ti-dmtimer: select TIMER_OF when needed

From: Arnd Bergmann <[email protected]>

When CONFIG_OF is enabled but CONFIG_TIMER_OF is not, building the dm systimer driver produces a warning:

arm-linux-gnueabi-ld: warning: orphan section __timer_of_table' from drivers/clocksource/timer-ti-dm-systimer.o' being placed in section `__timer_of_table'

Address this by selecting the TIMER_OF symbol in this configuration. If CONFIG_OF is disabled, the table entry is not created, so there is no warning, and no reason to have the infrastructure.

---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clocksource/Kconfig +1 -0
index 0f5e3983951a..f006d29e50f5 100644
@@ -24,6 +24,7 @@ config I8253_LOCK
 
 config OMAP_DM_TIMER
 	bool
+	select TIMER_OF if OF
 
 config CLKBLD_I8253
 	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
Signature · 1 line
2.29.2