summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-eznps.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-10-17 14:26:57 +0000
committerThomas Gleixner <tglx@linutronix.de>2016-10-19 14:24:36 +0200
commitdd1dafcdf071d94cb53917612c66a169ce741461 (patch)
treebc54e5578ac8241d19e526c42320796a4fef58cd /drivers/irqchip/irq-eznps.c
parent1a1891d762d6e64daf07b5be4817e3fbb29e3c59 (diff)
downloadlinux-dd1dafcdf071d94cb53917612c66a169ce741461.tar.bz2
irqchip/eznps: Drop pointless static qualifier in nps400_of_init()
There is no need to have the 'struct irq_domain *nps400_root_domain' variable static since new value is always assigned before use. Fixes: 44df427c894a ("irqchip: add nps Internal and external irqchips") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Jason Cooper <jason@lakedaemon.net> Link: http://lkml.kernel.org/r/1476714417-12095-1-git-send-email-weiyj.lk@gmail.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/irqchip/irq-eznps.c')
-rw-r--r--drivers/irqchip/irq-eznps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-eznps.c b/drivers/irqchip/irq-eznps.c
index ebc2b0b15f67..2a7a38830a8d 100644
--- a/drivers/irqchip/irq-eznps.c
+++ b/drivers/irqchip/irq-eznps.c
@@ -135,7 +135,7 @@ static const struct irq_domain_ops nps400_irq_ops = {
static int __init nps400_of_init(struct device_node *node,
struct device_node *parent)
{
- static struct irq_domain *nps400_root_domain;
+ struct irq_domain *nps400_root_domain;
if (parent) {
pr_err("DeviceTree incore ic not a root irq controller\n");