irqchip: Remove redundant irq_chip::name initialization
authorKeguang Zhang <keguang.zhang@gmail.com>
Mon, 11 Mar 2024 11:53:44 +0000 (19:53 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Mar 2024 16:38:29 +0000 (17:38 +0100)
Since commit 021a8ca2ba23 ("genirq/generic-chip: Fix the irq_chip name for
/proc/interrupts"), the chip name of all chip types are set to the same
name by irq_init_generic_chip() now. So the initialization to the same
irq_chip name are no longer needed. Drop them.

Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20240311115344.72567-1-keguang.zhang@gmail.com
drivers/irqchip/irq-sunxi-nmi.c
drivers/irqchip/irq-tb10x.c

index e760b1278143dd25dc84987750613d0dd3405bc9..bb92fd85e975f81ba791c8a85c3cea50cdd781fd 100644 (file)
@@ -192,7 +192,6 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node,
        gc->chip_types[0].regs.type             = reg_offs->ctrl;
 
        gc->chip_types[1].type                  = IRQ_TYPE_EDGE_BOTH;
-       gc->chip_types[1].chip.name             = gc->chip_types[0].chip.name;
        gc->chip_types[1].chip.irq_ack          = irq_gc_ack_set_bit;
        gc->chip_types[1].chip.irq_mask         = irq_gc_mask_clr_bit;
        gc->chip_types[1].chip.irq_unmask       = irq_gc_mask_set_bit;
index 680586354d12ff138886d30df8ffc4296d5a9eaf..d59bfbe8c6d02a278e02bad1f90176152f46f84f 100644 (file)
@@ -150,7 +150,6 @@ static int __init of_tb10x_init_irq(struct device_node *ictl,
        gc->chip_types[0].regs.mask          = AB_IRQCTL_INT_ENABLE;
 
        gc->chip_types[1].type               = IRQ_TYPE_EDGE_BOTH;
-       gc->chip_types[1].chip.name          = gc->chip_types[0].chip.name;
        gc->chip_types[1].chip.irq_ack       = irq_gc_ack_set_bit;
        gc->chip_types[1].chip.irq_mask      = irq_gc_mask_clr_bit;
        gc->chip_types[1].chip.irq_unmask    = irq_gc_mask_set_bit;