Skip to contentSkip to conversation

irqchip: omap-intc: Remove duplicate setup for IRQ chip type handler

PATCH New Milo Kim 2 participants 2 messages Dec 21, 2015 – Dec 29, 2015

Subsystems (2)
lore
Share & tools
lore

Milo Kim

author
#0 lore raw

PATCH 1/1 irqchip: omap-intc: Remove duplicate setup for IRQ chip type handler

Some OMAP interrupt controllers use generic level detection, so handle_level_irq() is used as the chip type handler. Allocated IRQ chip type handler doesn't need to set it again because irq_alloc_domain_generic_chips() has already registered it.

Tested with BeagleBoneBlack Rev C.

Cc Tony Lindgren <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Jason Cooper <[email protected]>
Cc Marc Zyngier <[email protected]>
---
 drivers/irqchip/irq-omap-intc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-omap-intc.c +0 -1
index 8587d0f..ed25175 100644
@@ -207,7 +207,6 @@ static int __init omap_alloc_gc_of(struct irq_domain *d, void __iomem *base)
 		ct = gc->chip_types;
 
 		ct->type = IRQ_TYPE_LEVEL_MASK;
-		ct->handler = handle_level_irq;
 
 		ct->chip.irq_ack = omap_mask_ack_irq;
 		ct->chip.irq_mask = irq_gc_mask_disable_reg;
Signature · 1 line
1.9.1
#1 lore raw

[tip:irq/core] irqchip/omap-intc: Remove duplicate setup for IRQ chip type handler

irqchip/omap-intc: Remove duplicate setup for IRQ chip type handler
Commit-ID:  fee48dfcd76b21b9a7117c3014e1345697ff08ec
Gitweb:     http://git.kernel.org/tip/fee48dfcd76b21b9a7117c3014e1345697ff08ec
Author:     Milo Kim <[email protected]>
AuthorDate: Mon, 21 Dec 2015 17:53:14 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 29 Dec 2015 11:58:54 +0100

irqchip/omap-intc: Remove duplicate setup for IRQ chip type handler

Some OMAP interrupt controllers use generic level detection, so handle_level_irq() is used as the chip type handler. Allocated IRQ chip type handler doesn't need to set it again because irq_alloc_domain_generic_chips() has already registered it.

Tested with BeagleBoneBlack Rev C.

---
 drivers/irqchip/irq-omap-intc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/irqchip/irq-omap-intc.c +0 -1
index 8587d0f..ed25175 100644
@@ -207,7 +207,6 @@ static int __init omap_alloc_gc_of(struct irq_domain *d, void __iomem *base)
 		ct = gc->chip_types;
 
 		ct->type = IRQ_TYPE_LEVEL_MASK;
-		ct->handler = handle_level_irq;
 
 		ct->chip.irq_ack = omap_mask_ack_irq;
 		ct->chip.irq_mask = irq_gc_mask_disable_reg;