diff options
author | Tero Kristo <t-kristo@ti.com> | 2013-10-22 04:53:02 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-17 15:37:14 -0500 |
commit | cfa9667d4ac9da8b3ba2269f934ecd69ae504d39 (patch) | |
tree | a7a31a4d74bc84bdc6aeb4e1b86705eeaf0d73db /arch/arm/mach-omap2/timer.c | |
parent | 943a63a41f8542eed31c902d840e9ca2753a592f (diff) |
ARM: OMAP2+: io: use new clock init API
clk_init is now separated to a common function which gets called for all
SoC:s, which initializes the DT clocks and calls the SoC specific clock init.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 3ca81e0ada5e..60e5fc93b114 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -570,8 +570,7 @@ static inline void __init realtime_counter_init(void) | |||
570 | clksrc_nr, clksrc_src, clksrc_prop) \ | 570 | clksrc_nr, clksrc_src, clksrc_prop) \ |
571 | void __init omap##name##_gptimer_timer_init(void) \ | 571 | void __init omap##name##_gptimer_timer_init(void) \ |
572 | { \ | 572 | { \ |
573 | if (omap_clk_init) \ | 573 | omap_clk_init(); \ |
574 | omap_clk_init(); \ | ||
575 | omap_dmtimer_init(); \ | 574 | omap_dmtimer_init(); \ |
576 | omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ | 575 | omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ |
577 | omap2_gptimer_clocksource_init((clksrc_nr), clksrc_src, \ | 576 | omap2_gptimer_clocksource_init((clksrc_nr), clksrc_src, \ |
@@ -582,8 +581,7 @@ void __init omap##name##_gptimer_timer_init(void) \ | |||
582 | clksrc_nr, clksrc_src, clksrc_prop) \ | 581 | clksrc_nr, clksrc_src, clksrc_prop) \ |
583 | void __init omap##name##_sync32k_timer_init(void) \ | 582 | void __init omap##name##_sync32k_timer_init(void) \ |
584 | { \ | 583 | { \ |
585 | if (omap_clk_init) \ | 584 | omap_clk_init(); \ |
586 | omap_clk_init(); \ | ||
587 | omap_dmtimer_init(); \ | 585 | omap_dmtimer_init(); \ |
588 | omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ | 586 | omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ |
589 | /* Enable the use of clocksource="gp_timer" kernel parameter */ \ | 587 | /* Enable the use of clocksource="gp_timer" kernel parameter */ \ |