aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_irq.h
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2015-12-01 11:24:17 -0500
committerRob Herring <robh@kernel.org>2015-12-09 10:08:36 -0500
commit4c3141e09cfa6460bfcd5e90f73e498db654c917 (patch)
tree7f281e91cb91e310c781aedbac320dfe59db185f /include/linux/of_irq.h
parentf8062386671a596ca7022c61727a14a25679a0a1 (diff)
of/irq: Export of_irq_find_parent again
of_irq_find_parent was made static since it had no users outside of of_irq.c. Export it again since we are going to use it again. Signed-off-by: Carlo Caione <carlo@endlessm.com> [robh: move of_irq_find_parent to correct ifdef section] Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of_irq.h')
-rw-r--r--include/linux/of_irq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h
index 039f2eec49ce..f648acf27ed7 100644
--- a/include/linux/of_irq.h
+++ b/include/linux/of_irq.h
@@ -46,6 +46,7 @@ extern int of_irq_get(struct device_node *dev, int index);
46extern int of_irq_get_byname(struct device_node *dev, const char *name); 46extern int of_irq_get_byname(struct device_node *dev, const char *name);
47extern int of_irq_to_resource_table(struct device_node *dev, 47extern int of_irq_to_resource_table(struct device_node *dev,
48 struct resource *res, int nr_irqs); 48 struct resource *res, int nr_irqs);
49extern struct device_node *of_irq_find_parent(struct device_node *child);
49extern struct irq_domain *of_msi_get_domain(struct device *dev, 50extern struct irq_domain *of_msi_get_domain(struct device *dev,
50 struct device_node *np, 51 struct device_node *np,
51 enum irq_domain_bus_token token); 52 enum irq_domain_bus_token token);
@@ -70,6 +71,11 @@ static inline int of_irq_to_resource_table(struct device_node *dev,
70{ 71{
71 return 0; 72 return 0;
72} 73}
74static inline void *of_irq_find_parent(struct device_node *child)
75{
76 return NULL;
77}
78
73static inline struct irq_domain *of_msi_get_domain(struct device *dev, 79static inline struct irq_domain *of_msi_get_domain(struct device *dev,
74 struct device_node *np, 80 struct device_node *np,
75 enum irq_domain_bus_token token) 81 enum irq_domain_bus_token token)