Commit e099d01e authored by Matthias Brugger's avatar Matthias Brugger Committed by Daniel Lezcano

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: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent e6b7f580
...@@ -164,7 +164,6 @@ static void __init keystone_timer_init(struct device_node *np) ...@@ -164,7 +164,6 @@ static void __init keystone_timer_init(struct device_node *np)
unsigned long rate; unsigned long rate;
struct clk *clk; struct clk *clk;
int irq, error; int irq, error;
u32 tgcr;
irq = irq_of_parse_and_map(np, 0); irq = irq_of_parse_and_map(np, 0);
if (irq == NO_IRQ) { if (irq == NO_IRQ) {
...@@ -199,12 +198,10 @@ static void __init keystone_timer_init(struct device_node *np) ...@@ -199,12 +198,10 @@ static void __init keystone_timer_init(struct device_node *np)
keystone_timer_barrier(); keystone_timer_barrier();
/* reset timer as 64-bit, no pre-scaler, plus features are disabled */ /* reset timer as 64-bit, no pre-scaler, plus features are disabled */
tgcr = 0;
keystone_timer_writel(0, TGCR); keystone_timer_writel(0, TGCR);
/* unreset timer */ /* unreset timer */
tgcr |= TGCR_TIM_UNRESET_MASK; keystone_timer_writel(TGCR_TIM_UNRESET_MASK, TGCR);
keystone_timer_writel(tgcr, TGCR);
/* init counter to zero */ /* init counter to zero */
keystone_timer_writel(0, TIM12); keystone_timer_writel(0, TIM12);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment