From: Matthias Brugger <matthias.bgg@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Subject: [PATCH] clocksource: timer-keystone: Delete unnecessary variable
Date: Tue, 18 Feb 2014 19:29:28 +0100 [thread overview]
Message-ID: <1392748168-17080-1-git-send-email-matthias.bgg@gmail.com> (raw)
In-Reply-To: <52FA1E59.1000307@linaro.org>
Commit 438e0bff5257 added the timer-keystone device driver but make use
of an unnecessary variable in the init function.
This patch delets this variable.
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
---
drivers/clocksource/timer-keystone.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/clocksource/timer-keystone.c b/drivers/clocksource/timer-keystone.c
index 86b08cd..0250354 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)
unsigned long rate;
struct clk *clk;
int irq, error;
- u32 tgcr;
irq = irq_of_parse_and_map(np, 0);
if (irq == NO_IRQ) {
@@ -199,12 +198,10 @@ static void __init keystone_timer_init(struct device_node *np)
keystone_timer_barrier();
/* reset timer as 64-bit, no pre-scaler, plus features are disabled */
- tgcr = 0;
keystone_timer_writel(0, TGCR);
/* unreset timer */
- tgcr |= TGCR_TIM_UNRESET_MASK;
- keystone_timer_writel(tgcr, TGCR);
+ keystone_timer_writel(TGCR_TIM_UNRESET_MASK, TGCR);
/* init counter to zero */
keystone_timer_writel(0, TIM12);
--
1.8.1.2
next prev parent reply other threads:[~2014-02-18 18:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 10:10 [PATCH v6 0/3] Introduce clocksource driver for Keystone platform Ivan Khoronzhuk
2014-02-10 10:10 ` [PATCH v6 1/3] clocksource: timer-keystone: introduce clocksource driver for Keystone Ivan Khoronzhuk
2014-02-11 12:58 ` Daniel Lezcano
2014-02-18 10:40 ` Matthias Brugger
2014-02-18 10:46 ` Daniel Lezcano
2014-02-18 18:29 ` Matthias Brugger [this message]
2014-02-20 7:50 ` [PATCH] clocksource: timer-keystone: Delete unnecessary variable Daniel Lezcano
2014-02-10 10:10 ` [PATCH v6 2/3] clocksource: keystone: add bindings for keystone timer Ivan Khoronzhuk
2014-02-11 12:58 ` Daniel Lezcano
2014-02-10 10:10 ` [PATCH v6 3/3] arm: dts: keystone: add keystone timer entry Ivan Khoronzhuk
2014-02-10 15:50 ` [PATCH v6 0/3] Introduce clocksource driver for Keystone platform Santosh Shilimkar
2014-02-11 12:50 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392748168-17080-1-git-send-email-matthias.bgg@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®