]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix undefined reference to set_cntfreq
authorTony Lindgren <tony@atomide.com>
Mon, 18 Nov 2013 21:56:48 +0000 (13:56 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 18 Nov 2013 23:33:16 +0000 (15:33 -0800)
commit07a30b12efd8eda108a18147d6e9257f1ef0b00c
treeb274d6684e1e1f0029dee2f6247a143ee3716943
parent9b99b461202a35a4c06411b58fac250b5b22f893
ARM: OMAP2+: Fix undefined reference to set_cntfreq

If CONFIG_SOC_HAS_REALTIME_COUNTER is not selected for omap5
or dra7xx, we can get the following error:

arch/arm/mach-omap2/built-in.o: In function `omap4_secondary_init':
:(.text+0x7ab0): undefined reference to `set_cntfreq'

Fix the issue by not trying to initalize the realtime counter
unles CONFIG_SOC_HAS_REALTIME_COUNTER is selected.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-secure.h