Commit 1fd9a710 authored by Geliang Tang's avatar Geliang Tang Committed by Thomas Gleixner

irqchip/zevio: Use irq_data_get_chip_type() helper

Use irq_data_get_chip_type() instead of container_of().
Signed-off-by: default avatarGeliang Tang <>
Cc: Jason Cooper <>
Cc: Marc Zyngier <>
Link: default avatarThomas Gleixner <>
parent fee48dfc
......@@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io;
static void zevio_irq_ack(struct irq_data *irqd)
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd);
struct irq_chip_regs *regs =
&container_of(irqd->chip, struct irq_chip_type, chip)->regs;
struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs;
readl(gc->reg_base + regs->ack);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment