[PATCH 13/19] irqchip: atmel-aic: clean up irq_chip_generic

From: Milo Kim
Date: Sun Jan 03 2016 - 23:29:00 EST


Now, aic_common_of_init() handles all IRQ chip operations.
Remove unused code for getting irq_chip_generic data.

Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Jason Cooper <jason@xxxxxxxxxxxxxx>
Cc: Marc Zyngier <marc.zyngier@xxxxxxx>
Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
Cc: Boris BREZILLON <boris.brezillon@xxxxxxxxxxxxxxxxxx>
Cc: Ludovic Desroches <ludovic.desroches@xxxxxxxxx>
Cc: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Milo Kim <milo.kim@xxxxxx>
---
drivers/irqchip/irq-atmel-aic.c | 3 ---
drivers/irqchip/irq-atmel-aic5.c | 8 --------
2 files changed, 11 deletions(-)

diff --git a/drivers/irqchip/irq-atmel-aic.c b/drivers/irqchip/irq-atmel-aic.c
index bab93a0..721ecb6 100644
--- a/drivers/irqchip/irq-atmel-aic.c
+++ b/drivers/irqchip/irq-atmel-aic.c
@@ -107,7 +107,6 @@ static void __init aic_hw_init(struct irq_domain *domain)
static int __init aic_of_init(struct device_node *node,
struct device_node *parent)
{
- struct irq_chip_generic *gc;
struct irq_domain *domain;

if (aic_domain)
@@ -118,8 +117,6 @@ static int __init aic_of_init(struct device_node *node,
return PTR_ERR(domain);

aic_domain = domain;
- gc = irq_get_domain_generic_chip(domain, 0);
-
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 b314aa4..ff487089 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -118,10 +118,7 @@ static int __init aic5_of_init(struct device_node *node,
struct device_node *parent,
int nirqs)
{
- struct irq_chip_generic *gc;
struct irq_domain *domain;
- int nchips;
- int i;

if (nirqs > NR_AIC5_IRQS)
return -EINVAL;
@@ -134,11 +131,6 @@ static int __init aic5_of_init(struct device_node *node,
return PTR_ERR(domain);

aic5_domain = domain;
- 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);
- }
-
aic5_hw_init(domain);
set_handle_irq(aic5_handle);

--
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/