summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-zevio.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-30 17:16:37 +0300
committerThomas Gleixner <tglx@linutronix.de>2015-12-30 20:29:02 +0300
commit1fd9a71076ccbcf731cf02408122600a6f2b5d17 (patch)
tree038d5f55314f534327ef3120b6aafd124b03ee85 /drivers/irqchip/irq-zevio.c
parentfee48dfcd76b21b9a7117c3014e1345697ff08ec (diff)
downloadlinux-1fd9a71076ccbcf731cf02408122600a6f2b5d17.tar.xz
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>
Diffstat (limited to 'drivers/irqchip/irq-zevio.c')
-rw-r--r--drivers/irqchip/irq-zevio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-zevio.c b/drivers/irqchip/irq-zevio.c
index 4c48fa88a03d..cb9d8ec37507 100644
--- a/drivers/irqchip/irq-zevio.c
+++ b/drivers/irqchip/irq-zevio.c
@@ -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);
}