diff options
Diffstat (limited to 'arch/arm/plat-spear')
-rw-r--r-- | arch/arm/plat-spear/time.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/plat-spear/time.c b/arch/arm/plat-spear/time.c index ab211652e4ca..839c88df9994 100644 --- a/arch/arm/plat-spear/time.c +++ b/arch/arm/plat-spear/time.c | |||
@@ -81,8 +81,6 @@ static struct clocksource clksrc = { | |||
81 | .rating = 200, /* its a pretty decent clock */ | 81 | .rating = 200, /* its a pretty decent clock */ |
82 | .read = clocksource_read_cycles, | 82 | .read = clocksource_read_cycles, |
83 | .mask = 0xFFFF, /* 16 bits */ | 83 | .mask = 0xFFFF, /* 16 bits */ |
84 | .mult = 0, /* to be computed */ | ||
85 | .shift = 0, /* to be computed */ | ||
86 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 84 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
87 | }; | 85 | }; |
88 | 86 | ||
@@ -105,10 +103,8 @@ static void spear_clocksource_init(void) | |||
105 | val |= CTRL_ENABLE ; | 103 | val |= CTRL_ENABLE ; |
106 | writew(val, gpt_base + CR(CLKSRC)); | 104 | writew(val, gpt_base + CR(CLKSRC)); |
107 | 105 | ||
108 | clocksource_calc_mult_shift(&clksrc, tick_rate, SPEAR_MIN_RANGE); | ||
109 | |||
110 | /* register the clocksource */ | 106 | /* register the clocksource */ |
111 | clocksource_register(&clksrc); | 107 | clocksource_register_hz(&clksrc, tick_rate); |
112 | } | 108 | } |
113 | 109 | ||
114 | static struct clock_event_device clkevt = { | 110 | static struct clock_event_device clkevt = { |