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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -46,6 +46,7 @@ extern int of_irq_get(struct device_node *dev, int index); · 45 unmodified lines | |||
| 46 | extern int of_irq_get_byname(struct device_node *dev, const char *name); | 46 | extern int of_irq_get_byname(struct device_node *dev, const char *name); |
| 47 | extern int of_irq_to_resource_table(struct device_node *dev, | 47 | extern int of_irq_to_resource_table(struct device_node *dev, |
| 48 | struct resource *res, int nr_irqs); | 48 | struct resource *res, int nr_irqs); |
| 49 | extern struct device_node *of_irq_find_parent(struct device_node *child); | ||
| 49 | extern struct irq_domain *of_msi_get_domain(struct device *dev, | 50 | extern 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, · 18 unmodified lines | |||
| 70 | { | 71 | { |
| 71 | return 0; | 72 | return 0; |
| 72 | } | 73 | } |
| 74 | static inline void *of_irq_find_parent(struct device_node *child) | ||
| 75 | { | ||
| 76 | return NULL; | ||
| 77 | } | ||
| 78 | |||
| 73 | static inline struct irq_domain *of_msi_get_domain(struct device *dev, | 79 | static 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) |