aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/irqdomain.c14
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}
127EXPORT_SYMBOL_GPL(irq_dispose_mapping); 127EXPORT_SYMBOL_GPL(irq_dispose_mapping);
128 128
129int irq_domain_simple_dt_translate(struct irq_domain *d, 129int 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
182struct irq_domain_ops irq_domain_simple_ops = { 182struct 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};
187EXPORT_SYMBOL_GPL(irq_domain_simple_ops); 187EXPORT_SYMBOL_GPL(irq_domain_simple_ops);