aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@gmail.com>2014-02-18 13:29:28 -0500
committerDaniel Lezcano <daniel.lezcano@linaro.org>2014-03-11 18:05:00 -0400
commite099d01eb221f4a1e713a7663ca143c05303947f (patch)
treebcb0f3211244c43f91204c7a8f6c942436585538 /drivers/clocksource
parente6b7f580bacb4a23e1ee5cdf6dc6e54bab141f7c (diff)
clocksource: timer-keystone: Delete unnecessary variable
Commit 438e0bff5257 added the timer-keystone device driver but make use of an unnecessary variable in the init function. This patch deletes this variable. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-keystone.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/clocksource/timer-keystone.c b/drivers/clocksource/timer-keystone.c
index 86b08cd144e0..0250354f7e55 100644
--- a/drivers/clocksource/timer-keystone.c
+++ b/drivers/clocksource/timer-keystone.c
@@ -164,7 +164,6 @@ static void __init keystone_timer_init(struct device_node *np)
164 unsigned long rate; 164 unsigned long rate;
165 struct clk *clk; 165 struct clk *clk;
166 int irq, error; 166 int irq, error;
167 u32 tgcr;
168 167
169 irq = irq_of_parse_and_map(np, 0); 168 irq = irq_of_parse_and_map(np, 0);
170 if (irq == NO_IRQ) { 169 if (irq == NO_IRQ) {
@@ -199,12 +198,10 @@ static void __init keystone_timer_init(struct device_node *np)
199 keystone_timer_barrier(); 198 keystone_timer_barrier();
200 199
201 /* reset timer as 64-bit, no pre-scaler, plus features are disabled */ 200 /* reset timer as 64-bit, no pre-scaler, plus features are disabled */
202 tgcr = 0;
203 keystone_timer_writel(0, TGCR); 201 keystone_timer_writel(0, TGCR);
204 202
205 /* unreset timer */ 203 /* unreset timer */
206 tgcr |= TGCR_TIM_UNRESET_MASK; 204 keystone_timer_writel(TGCR_TIM_UNRESET_MASK, TGCR);
207 keystone_timer_writel(tgcr, TGCR);
208 205
209 /* init counter to zero */ 206 /* init counter to zero */
210 keystone_timer_writel(0, TIM12); 207 keystone_timer_writel(0, TIM12);