# \[PATCH\] clocksource/drivers/timer-ti-dm: Select TIMER\_OF

- From: Kees Cook \<hidden\>
- Date: 2021-08-28 17:58:00 
- List: linux-omap
- Page: https://ratatoskr.run/linux-omap/2021/08/1491273
- Thread: https://ratatoskr.run/linux-omap/2021/08/1491273/t.md

```text
When building OMAP_DM_TIMER without TIMER_OF, there are orphan sections
due to the use of TIMER_OF_DELCARE() without CONFIG_TIMER_OF. Select
CONFIG_TIMER_OF when enaling OMAP_DM_TIMER:

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'

Reported-by: kernel test robot <redacted>
Link: https://lore.kernel.org/lkml/202108282255.tkdt4ani-lkp@intel.com/
Cc: Tony Lindgren <tony@atomide.com>
Cc: Daniel Lezcano <redacted>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Sebastian Reichel <redacted>
Cc: Ladislav Michl <redacted>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: <redacted>
Fixes: 52762fbd1c47 ("clocksource/drivers/timer-ti-dm: Add clockevent and clocksource support")
Signed-off-by: Kees Cook <redacted>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 0f5e3983951a..08f8cb944a2a 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -24,6 +24,7 @@ config I8253_LOCK
 
 config OMAP_DM_TIMER
 	bool
+	select TIMER_OF
 
 config CLKBLD_I8253
 	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
-- 
2.30.2

```
