projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fee48df
)
irqchip/zevio: Use irq_data_get_chip_type() helper
author
Geliang Tang
<geliangtang@163.com>
Wed, 30 Dec 2015 14:16:37 +0000
(22:16 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 30 Dec 2015 17:29:02 +0000
(18:29 +0100)
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>
drivers/irqchip/irq-zevio.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-zevio.c
b/drivers/irqchip/irq-zevio.c
index 4c48fa88a03d9b54651276cfe95a8fc2d5e287af..cb9d8ec375076ca5ddde0e708ba1a226c1e75d48 100644
(file)
--- 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);
}