From 90f49c9da0f0fae198c1a90be38bc9679921b9d1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 24 Nov 2014 15:48:20 +0800 Subject: [PATCH] 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 Acked-by: Ley Foon Tan --- arch/nios2/kernel/time.c | 2 -- 1 file changed, 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 @@ struct nios2_timer { void __iomem *base; unsigned long freq; - int irq; }; struct nios2_clockevent_dev { @@ -232,7 +231,6 @@ static __init void nios2_clockevent_init(struct device_node *timer) panic("Unable to parse timer irq\n"); nios2_ce.timer.base = iobase; - nios2_ce.timer.irq = irq; nios2_ce.timer.freq = freq; nios2_ce.ced.cpumask = cpumask_of(0); -- GitLab