Use irq_data_get_chip_type() instead of container_of().
Unified · Split
| @@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io; · 42 unmodified lines | ||
| 43 | 43 | static void zevio_irq_ack(struct irq_data *irqd) |
| 44 | 44 | { |
| 45 | 45 | struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd); |
| 46 | − struct irq_chip_regs *regs = | |
| 47 | − &container_of(irqd->chip, struct irq_chip_type, chip)->regs; | |
| 46 | + struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs; | |
| 48 | 47 | |
| 49 | 48 | readl(gc->reg_base + regs->ack); |
| 50 | 49 | } |