aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-11-24 02:48:20 -0500
committerLey Foon Tan <lftan@altera.com>2014-12-07 23:56:12 -0500
commit90f49c9da0f0fae198c1a90be38bc9679921b9d1 (patch)
tree7a17be2fde2f0eabfdc42968f4e2b2d8fbd68f94 /arch/nios2
parent01eca3b1eee198212e516149bc1ff5b63671db1a (diff)
nios2: Remove write-only struct member from nios2_timer
The irq member of struct nios2_timer is only written to but never read, thus it can be removed. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/kernel/time.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
index 23729e81de4a..7f4547418ee1 100644
--- a/arch/nios2/kernel/time.c
+++ b/arch/nios2/kernel/time.c
@@ -33,7 +33,6 @@
33struct nios2_timer { 33struct nios2_timer {
34 void __iomem *base; 34 void __iomem *base;
35 unsigned long freq; 35 unsigned long freq;
36 int irq;
37}; 36};
38 37
39struct nios2_clockevent_dev { 38struct nios2_clockevent_dev {
@@ -232,7 +231,6 @@ static __init void nios2_clockevent_init(struct device_node *timer)
232 panic("Unable to parse timer irq\n"); 231 panic("Unable to parse timer irq\n");
233 232
234 nios2_ce.timer.base = iobase; 233 nios2_ce.timer.base = iobase;
235 nios2_ce.timer.irq = irq;
236 nios2_ce.timer.freq = freq; 234 nios2_ce.timer.freq = freq;
237 235
238 nios2_ce.ced.cpumask = cpumask_of(0); 236 nios2_ce.ced.cpumask = cpumask_of(0);