History

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.

Carlo Caione committed 10 years ago

Commit 4c3141e1 parent f8062382 files · +8 −1Browse files

Unified · Split

2 files
  1. drivers/of/irq.c +2 −1
  2. include/linux/of_irq.h +6 −0
drivers/of/irq.c+2−1
@@ -53,7 +53,7 @@ EXPORT_SYMBOL_GPL(irq_of_parse_and_map); · 52 unmodified lines
53 * Returns a pointer to the interrupt parent node, or NULL if the interrupt53 * Returns a pointer to the interrupt parent node, or NULL if the interrupt
54 * parent could not be determined.54 * parent could not be determined.
55 */55 */
56static struct device_node *of_irq_find_parent(struct device_node *child)56struct device_node *of_irq_find_parent(struct device_node *child)
57{57{
58 struct device_node *p;58 struct device_node *p;
59 const __be32 *parp;59 const __be32 *parp;
@@ -77,6 +77,7 @@ static struct device_node *of_irq_find_parent(struct device_node *child) · 17 unmodified lines
77 77
78 return p;78 return p;
79}79}
80EXPORT_SYMBOL_GPL(of_irq_find_parent);
80 81
81/**82/**
82 * of_irq_parse_raw - Low level interrupt tree parsing83 * of_irq_parse_raw - Low level interrupt tree parsing
include/linux/of_irq.h+6−0
@@ -46,6 +46,7 @@ extern int of_irq_get(struct device_node *dev, int index); · 45 unmodified lines
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, · 18 unmodified lines
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t