aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-02-14 16:06:48 -0500
committerGrant Likely <grant.likely@secretlab.ca>2012-02-14 16:06:48 -0500
commit7bb69bade0d41715bdf1b24f5ef0b8f798769fe9 (patch)
treeb024fa6c54e56bf1c9ea19c1ff76e86607a2a265 /arch/arm/common
parente1964c50a83d1ce53731c88271d12ac92292a880 (diff)
irq_domain: Make irq_domain structure match powerpc's irq_host
Part of the series to unify the irq remapping mechanisms in the kernel. A follow up patch will copy the powerpc implementation into kernel/irq/irqdomain.c, which will be a lot easier if the structures are identical. Where they differ, I've chose to use the powerpc names since there is a lot more code using those names. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Rob Herring <rob.herring@calxeda.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Milton Miller <miltonm@bga.com> Tested-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/gic.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
index c47d6199b784..dc19862be0a8 100644
--- a/arch/arm/common/gic.c
+++ b/arch/arm/common/gic.c
@@ -619,10 +619,10 @@ static void __init gic_pm_init(struct gic_chip_data *gic)
619#endif 619#endif
620 620
621#ifdef CONFIG_OF 621#ifdef CONFIG_OF
622static int gic_irq_domain_dt_translate(struct irq_domain *d, 622static int gic_irq_domain_xlate(struct irq_domain *d,
623 struct device_node *controller, 623 struct device_node *controller,
624 const u32 *intspec, unsigned int intsize, 624 const u32 *intspec, unsigned int intsize,
625 unsigned long *out_hwirq, unsigned int *out_type) 625 unsigned long *out_hwirq, unsigned int *out_type)
626{ 626{
627 if (d->of_node != controller) 627 if (d->of_node != controller)
628 return -EINVAL; 628 return -EINVAL;
@@ -641,9 +641,9 @@ static int gic_irq_domain_dt_translate(struct irq_domain *d,
641} 641}
642#endif 642#endif
643 643
644const struct irq_domain_ops gic_irq_domain_ops = { 644struct irq_domain_ops gic_irq_domain_ops = {
645#ifdef CONFIG_OF 645#ifdef CONFIG_OF
646 .dt_translate = gic_irq_domain_dt_translate, 646 .xlate = gic_irq_domain_xlate,
647#endif 647#endif
648}; 648};
649 649
@@ -721,7 +721,7 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start,
721 irq_start); 721 irq_start);
722 domain->irq_base = irq_start; 722 domain->irq_base = irq_start;
723 } 723 }
724 domain->priv = gic; 724 domain->host_data = gic;
725 domain->ops = &gic_irq_domain_ops; 725 domain->ops = &gic_irq_domain_ops;
726 irq_domain_add(domain); 726 irq_domain_add(domain);
727 727