irqchip/zevio: Use irq_data_get_chip_type() helper
Use irq_data_get_chip_type() instead of container_of(). Signed-off-by: Geliang 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.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
fee48dfcd7
commit
1fd9a71076
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user