diff options
author | Tony Lindgren <tony@atomide.com> | 2013-10-11 20:28:04 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-10-11 20:28:04 -0400 |
commit | d5da94b88efebc375bfcbab6bb0e59a6e8a6571e (patch) | |
tree | ade2bbb6a264bb48b4ba6406df1b3a9b424635b7 | |
parent | 5523e4092ee4f2ef58d00c78365c8bddf730c900 (diff) |
ARM: OMAP2+: Fix build error for realtime counter init if not enabled
Otherwise we can get an error with some configs:
arch/arm/mach-omap2/timer.c:73: undefined reference to `omap_smc1'
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 87259dc82aa2..d59b51f07cf2 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -66,12 +66,15 @@ | |||
66 | 66 | ||
67 | static struct omap_dm_timer clkev; | 67 | static struct omap_dm_timer clkev; |
68 | static struct clock_event_device clockevent_gpt; | 68 | static struct clock_event_device clockevent_gpt; |
69 | |||
70 | #ifdef CONFIG_SOC_HAS_REALTIME_COUNTER | ||
69 | static unsigned long arch_timer_freq; | 71 | static unsigned long arch_timer_freq; |
70 | 72 | ||
71 | void set_cntfreq(void) | 73 | void set_cntfreq(void) |
72 | { | 74 | { |
73 | omap_smc1(OMAP5_DRA7_MON_SET_CNTFRQ_INDEX, arch_timer_freq); | 75 | omap_smc1(OMAP5_DRA7_MON_SET_CNTFRQ_INDEX, arch_timer_freq); |
74 | } | 76 | } |
77 | #endif | ||
75 | 78 | ||
76 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) | 79 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) |
77 | { | 80 | { |