Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/renesas-irqc: Use proper irq_chip name and parent

The irq_chip .name field should contain the device's class (not
instance) name, while .parent_device should point to the device itself.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

authored by

Geert Uytterhoeven and committed by
Marc Zyngier
17c88892 ec93b94a

+2 -1
+2 -1
drivers/irqchip/irq-renesas-irqc.c
··· 176 176 } 177 177 178 178 ret = irq_alloc_domain_generic_chips(p->irq_domain, p->number_of_irqs, 179 - 1, name, handle_level_irq, 179 + 1, "irqc", handle_level_irq, 180 180 0, 0, IRQ_GC_INIT_NESTED_LOCK); 181 181 if (ret) { 182 182 dev_err(dev, "cannot allocate generic chip\n"); ··· 187 187 p->gc->reg_base = p->cpu_int_base; 188 188 p->gc->chip_types[0].regs.enable = IRQC_EN_SET; 189 189 p->gc->chip_types[0].regs.disable = IRQC_EN_STS; 190 + p->gc->chip_types[0].chip.parent_device = dev; 190 191 p->gc->chip_types[0].chip.irq_mask = irq_gc_mask_disable_reg; 191 192 p->gc->chip_types[0].chip.irq_unmask = irq_gc_unmask_enable_reg; 192 193 p->gc->chip_types[0].chip.irq_set_type = irqc_irq_set_type;