Skip to content

Commit

Permalink
of: Export of_irq_find_parent()
Browse files Browse the repository at this point in the history
We have platform code that needs to find a node's interrupt parent, so
export of_irq_find_parent() so we can use it.

Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
mpe authored and ozbenh committed Apr 20, 2011
1 parent 931e124 commit 0b2e9a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ EXPORT_SYMBOL_GPL(irq_of_parse_and_map);
* Returns a pointer to the interrupt parent node, or NULL if the interrupt
* parent could not be determined.
*/
static struct device_node *of_irq_find_parent(struct device_node *child)
struct device_node *of_irq_find_parent(struct device_node *child)
{
struct device_node *p;
const __be32 *parp;
Expand Down
1 change: 1 addition & 0 deletions include/linux/of_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ extern int of_irq_to_resource(struct device_node *dev, int index,
extern int of_irq_count(struct device_node *dev);
extern int of_irq_to_resource_table(struct device_node *dev,
struct resource *res, int nr_irqs);
extern struct device_node *of_irq_find_parent(struct device_node *child);

#endif /* CONFIG_OF_IRQ */
#endif /* CONFIG_OF */
Expand Down

0 comments on commit 0b2e9a8

Please sign in to comment.