Structure 'aic_reg_data' has EOI data, chip type data can be moved to common part.
Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Cc: Alexandre Belloni <alexandre.bell...@free-electrons.com> Cc: Boris BREZILLON <boris.brezil...@free-electrons.com> Cc: Ludovic Desroches <ludovic.desroc...@atmel.com> Cc: Nicolas Ferre <nicolas.fe...@atmel.com> Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim <milo....@ti.com> --- drivers/irqchip/irq-atmel-aic-common.c | 1 + drivers/irqchip/irq-atmel-aic.c | 2 -- drivers/irqchip/irq-atmel-aic5.c | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-atmel-aic-common.c b/drivers/irqchip/irq-atmel-aic-common.c index 3a723f4..777cf33 100644 --- a/drivers/irqchip/irq-atmel-aic-common.c +++ b/drivers/irqchip/irq-atmel-aic-common.c @@ -476,6 +476,7 @@ struct irq_domain *__init aic_common_of_init(struct device_node *node, gc->wake_enabled = ~0; gc->chip_types[0].type = IRQ_TYPE_SENSE_MASK; + gc->chip_types[0].regs.eoi = aic_reg_data->eoi; gc->chip_types[0].chip.irq_eoi = irq_gc_eoi; gc->chip_types[0].chip.irq_set_wake = irq_gc_set_wake; gc->chip_types[0].chip.irq_shutdown = aic_irq_shutdown; diff --git a/drivers/irqchip/irq-atmel-aic.c b/drivers/irqchip/irq-atmel-aic.c index 5f943b5..bab93a0 100644 --- a/drivers/irqchip/irq-atmel-aic.c +++ b/drivers/irqchip/irq-atmel-aic.c @@ -120,8 +120,6 @@ static int __init aic_of_init(struct device_node *node, aic_domain = domain; gc = irq_get_domain_generic_chip(domain, 0); - gc->chip_types[0].regs.eoi = AT91_AIC_EOICR; - aic_hw_init(domain); set_handle_irq(aic_handle); diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c index ec89178..b314aa4 100644 --- a/drivers/irqchip/irq-atmel-aic5.c +++ b/drivers/irqchip/irq-atmel-aic5.c @@ -137,8 +137,6 @@ static int __init aic5_of_init(struct device_node *node, nchips = aic5_domain->revmap_size / AIC_IRQS_PER_CHIP; for (i = 0; i < nchips; i++) { gc = irq_get_domain_generic_chip(domain, i * AIC_IRQS_PER_CHIP); - - gc->chip_types[0].regs.eoi = AT91_AIC5_EOICR; } aic5_hw_init(domain); -- 2.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/