diff options
author | Felipe Balbi <balbi@ti.com> | 2015-09-29 19:15:50 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-10-15 23:11:40 +0200 |
commit | c7cb14a58e6dc2a2eba3ed98e484cd8d7544d51d (patch) | |
tree | 4624d0df7e8556fb534dfcb17a9a631d38124479 /arch/arm/mach-omap2/timer.c | |
parent | arm: omap2: timer: remove __omap_gptimer_init() (diff) | |
download | linux-c7cb14a58e6dc2a2eba3ed98e484cd8d7544d51d.tar.xz linux-c7cb14a58e6dc2a2eba3ed98e484cd8d7544d51d.zip |
arm: omap2: timer: provide generic sync32k_timer_init function
instead of constantly defining a small wrapper
around __omap_sync32k_timer_init(), let's define
a generic one which can be used by all OMAPs.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 976ff9fa3594..ebebe1bd7237 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -608,21 +608,13 @@ static void __init __omap_sync32k_timer_init(int clkev_nr, const char *clkev_src omap2_sync32k_clocksource_init(); } -#ifdef CONFIG_ARCH_OMAP2 -void __init omap2_sync32k_timer_init(void) +void __init omap_sync32k_timer_init(void) { __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", 2, "timer_sys_ck", NULL, false); } -#endif /* CONFIG_ARCH_OMAP2 */ #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX) -void __init omap3_sync32k_timer_init(void) -{ - __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", - 2, "timer_sys_ck", NULL, false); -} - void __init omap3_secure_sync32k_timer_init(void) { __omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure", |