diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-02-14 16:06:48 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-02-14 16:06:48 -0500 |
commit | 7bb69bade0d41715bdf1b24f5ef0b8f798769fe9 (patch) | |
tree | b024fa6c54e56bf1c9ea19c1ff76e86607a2a265 /kernel/irq/irqdomain.c | |
parent | e1964c50a83d1ce53731c88271d12ac92292a880 (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 'kernel/irq/irqdomain.c')
-rw-r--r-- | kernel/irq/irqdomain.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index cc2cd43ec740..509adb8762d7 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c | |||
@@ -43,7 +43,7 @@ void irq_domain_add(struct irq_domain *domain) | |||
43 | } | 43 | } |
44 | 44 | ||
45 | mutex_lock(&irq_domain_mutex); | 45 | mutex_lock(&irq_domain_mutex); |
46 | list_add(&domain->list, &irq_domain_list); | 46 | list_add(&domain->link, &irq_domain_list); |
47 | mutex_unlock(&irq_domain_mutex); | 47 | mutex_unlock(&irq_domain_mutex); |
48 | } | 48 | } |
49 | 49 | ||
@@ -57,7 +57,7 @@ void irq_domain_del(struct irq_domain *domain) | |||
57 | int hwirq, irq; | 57 | int hwirq, irq; |
58 | 58 | ||
59 | mutex_lock(&irq_domain_mutex); | 59 | mutex_lock(&irq_domain_mutex); |
60 | list_del(&domain->list); | 60 | list_del(&domain->link); |
61 | mutex_unlock(&irq_domain_mutex); | 61 | mutex_unlock(&irq_domain_mutex); |
62 | 62 | ||
63 | /* Clear the irq_domain assignments */ | 63 | /* Clear the irq_domain assignments */ |
@@ -88,10 +88,10 @@ unsigned int irq_create_of_mapping(struct device_node *controller, | |||
88 | 88 | ||
89 | /* Find a domain which can translate the irq spec */ | 89 | /* Find a domain which can translate the irq spec */ |
90 | mutex_lock(&irq_domain_mutex); | 90 | mutex_lock(&irq_domain_mutex); |
91 | list_for_each_entry(domain, &irq_domain_list, list) { | 91 | list_for_each_entry(domain, &irq_domain_list, link) { |
92 | if (!domain->ops->dt_translate) | 92 | if (!domain->ops->xlate) |
93 | continue; | 93 | continue; |
94 | rc = domain->ops->dt_translate(domain, controller, | 94 | rc = domain->ops->xlate(domain, controller, |
95 | intspec, intsize, &hwirq, &type); | 95 | intspec, intsize, &hwirq, &type); |
96 | if (rc == 0) | 96 | if (rc == 0) |
97 | break; | 97 | break; |
@@ -126,7 +126,7 @@ void irq_dispose_mapping(unsigned int irq) | |||
126 | } | 126 | } |
127 | EXPORT_SYMBOL_GPL(irq_dispose_mapping); | 127 | EXPORT_SYMBOL_GPL(irq_dispose_mapping); |
128 | 128 | ||
129 | int irq_domain_simple_dt_translate(struct irq_domain *d, | 129 | int irq_domain_simple_xlate(struct irq_domain *d, |
130 | struct device_node *controller, | 130 | struct device_node *controller, |
131 | const u32 *intspec, unsigned int intsize, | 131 | const u32 *intspec, unsigned int intsize, |
132 | unsigned long *out_hwirq, unsigned int *out_type) | 132 | unsigned long *out_hwirq, unsigned int *out_type) |
@@ -181,7 +181,7 @@ EXPORT_SYMBOL_GPL(irq_domain_generate_simple); | |||
181 | 181 | ||
182 | struct irq_domain_ops irq_domain_simple_ops = { | 182 | struct irq_domain_ops irq_domain_simple_ops = { |
183 | #ifdef CONFIG_OF_IRQ | 183 | #ifdef CONFIG_OF_IRQ |
184 | .dt_translate = irq_domain_simple_dt_translate, | 184 | .xlate = irq_domain_simple_xlate, |
185 | #endif /* CONFIG_OF_IRQ */ | 185 | #endif /* CONFIG_OF_IRQ */ |
186 | }; | 186 | }; |
187 | EXPORT_SYMBOL_GPL(irq_domain_simple_ops); | 187 | EXPORT_SYMBOL_GPL(irq_domain_simple_ops); |