diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index b62de9f9d05c..43d03fbf4c0b 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -361,7 +361,7 @@ static void __init omap2_gp_clockevent_init(int gptimer_id, | |||
361 | 361 | ||
362 | /* Clocksource code */ | 362 | /* Clocksource code */ |
363 | static struct omap_dm_timer clksrc; | 363 | static struct omap_dm_timer clksrc; |
364 | static bool use_gptimer_clksrc; | 364 | static bool use_gptimer_clksrc __initdata; |
365 | 365 | ||
366 | /* | 366 | /* |
367 | * clocksource | 367 | * clocksource |
@@ -546,15 +546,15 @@ static void __init realtime_counter_init(void) | |||
546 | } | 546 | } |
547 | 547 | ||
548 | /* Program numerator and denumerator registers */ | 548 | /* Program numerator and denumerator registers */ |
549 | reg = __raw_readl(base + INCREMENTER_NUMERATOR_OFFSET) & | 549 | reg = readl_relaxed(base + INCREMENTER_NUMERATOR_OFFSET) & |
550 | NUMERATOR_DENUMERATOR_MASK; | 550 | NUMERATOR_DENUMERATOR_MASK; |
551 | reg |= num; | 551 | reg |= num; |
552 | __raw_writel(reg, base + INCREMENTER_NUMERATOR_OFFSET); | 552 | writel_relaxed(reg, base + INCREMENTER_NUMERATOR_OFFSET); |
553 | 553 | ||
554 | reg = __raw_readl(base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET) & | 554 | reg = readl_relaxed(base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET) & |
555 | NUMERATOR_DENUMERATOR_MASK; | 555 | NUMERATOR_DENUMERATOR_MASK; |
556 | reg |= den; | 556 | reg |= den; |
557 | __raw_writel(reg, base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET); | 557 | writel_relaxed(reg, base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET); |
558 | 558 | ||
559 | arch_timer_freq = (rate / den) * num; | 559 | arch_timer_freq = (rate / den) * num; |
560 | set_cntfreq(); | 560 | set_cntfreq(); |