linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip: irq-omap-intc: Do not statically initialize variables
@ 2017-10-16 16:13 Ladislav Michl
  2017-10-16 19:10 ` [tip:irq/core] irqchip/irq-omap-intc: " tip-bot for Ladislav Michl
  0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2017-10-16 16:13 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper, Marc Zyngier
  Cc: linux-omap, linux-kernel, Tony Lindgren

omap_nr_pending and omap_nr_irqs variables are initialized
right at the beginning of intc_of_init function, so there's
no need to statically initialize them.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 drivers/irqchip/irq-omap-intc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-omap-intc.c b/drivers/irqchip/irq-omap-intc.c
index 05f7f06dd711..d360a6eddd6d 100644
--- a/drivers/irqchip/irq-omap-intc.c
+++ b/drivers/irqchip/irq-omap-intc.c
@@ -66,8 +66,8 @@ static struct omap_intc_regs intc_context;
 
 static struct irq_domain *domain;
 static void __iomem *omap_irq_base;
-static int omap_nr_pending = 3;
-static int omap_nr_irqs = 96;
+static int omap_nr_pending;
+static int omap_nr_irqs;
 
 static void intc_writel(u32 reg, u32 val)
 {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:irq/core] irqchip/irq-omap-intc: Do not statically initialize variables
  2017-10-16 16:13 [PATCH] irqchip: irq-omap-intc: Do not statically initialize variables Ladislav Michl
@ 2017-10-16 19:10 ` tip-bot for Ladislav Michl
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Ladislav Michl @ 2017-10-16 19:10 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: marc.zyngier, hpa, linux-kernel, mingo, ladis, tglx, jason, tony

Commit-ID:  77c858fa343bb09cc3fe1456fda5710c974845b9
Gitweb:     https://git.kernel.org/tip/77c858fa343bb09cc3fe1456fda5710c974845b9
Author:     Ladislav Michl <ladis@linux-mips.org>
AuthorDate: Mon, 16 Oct 2017 18:13:03 +0200
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 16 Oct 2017 21:05:14 +0200

irqchip/irq-omap-intc: Do not statically initialize variables

omap_nr_pending and omap_nr_irqs variables are initialized
right at the beginning of intc_of_init function, so there's
no need to statically initialize them.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Cc: Jason Cooper <jason@lakedaemon.net>
Link: https://lkml.kernel.org/r/20171016161303.veumgcd3xom5c54r@lenoch

---
 drivers/irqchip/irq-omap-intc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-omap-intc.c b/drivers/irqchip/irq-omap-intc.c
index 05f7f06..d360a6e 100644
--- a/drivers/irqchip/irq-omap-intc.c
+++ b/drivers/irqchip/irq-omap-intc.c
@@ -66,8 +66,8 @@ static struct omap_intc_regs intc_context;
 
 static struct irq_domain *domain;
 static void __iomem *omap_irq_base;
-static int omap_nr_pending = 3;
-static int omap_nr_irqs = 96;
+static int omap_nr_pending;
+static int omap_nr_irqs;
 
 static void intc_writel(u32 reg, u32 val)
 {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-16 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16 16:13 [PATCH] irqchip: irq-omap-intc: Do not statically initialize variables Ladislav Michl
2017-10-16 19:10 ` [tip:irq/core] irqchip/irq-omap-intc: " tip-bot for Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).