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 <geliangtang@163.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/4cc3a3a7a74c7a1894892a85aa7eabbd1534fe96.1451484758.git.geliangtang@163.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent fee48dfc
...@@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io; ...@@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io;
static void zevio_irq_ack(struct irq_data *irqd) static void zevio_irq_ack(struct irq_data *irqd)
{ {
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd); struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd);
struct irq_chip_regs *regs = struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs;
&container_of(irqd->chip, struct irq_chip_type, chip)->regs;
readl(gc->reg_base + regs->ack); 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