diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer-gp.c')
-rw-r--r-- | arch/arm/mach-omap2/timer-gp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index e13c29eecf2b..a7816dbdc6b1 100644 --- a/arch/arm/mach-omap2/timer-gp.c +++ b/arch/arm/mach-omap2/timer-gp.c | |||
@@ -195,7 +195,6 @@ static struct clocksource clocksource_gpt = { | |||
195 | .rating = 300, | 195 | .rating = 300, |
196 | .read = clocksource_read_cycles, | 196 | .read = clocksource_read_cycles, |
197 | .mask = CLOCKSOURCE_MASK(32), | 197 | .mask = CLOCKSOURCE_MASK(32), |
198 | .shift = 24, | ||
199 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 198 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
200 | }; | 199 | }; |
201 | 200 | ||
@@ -220,9 +219,7 @@ static void __init omap2_gp_clocksource_init(void) | |||
220 | 219 | ||
221 | omap_dm_timer_set_load_start(gpt, 1, 0); | 220 | omap_dm_timer_set_load_start(gpt, 1, 0); |
222 | 221 | ||
223 | clocksource_gpt.mult = | 222 | if (clocksource_register_hz(&clocksource_gpt, tick_rate)) |
224 | clocksource_khz2mult(tick_rate/1000, clocksource_gpt.shift); | ||
225 | if (clocksource_register(&clocksource_gpt)) | ||
226 | printk(err2, clocksource_gpt.name); | 223 | printk(err2, clocksource_gpt.name); |
227 | } | 224 | } |
228 | #endif | 225 | #endif |