of: Export of_irq_find_parent()
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 14 Apr 2011 22:31:57 +0000 (22:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 07:01:19 +0000 (17:01 +1000)
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 <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/of/irq.c
include/linux/of_irq.h

index 75b0d3cb7676d39458ad2f402c0bb255a779f6b5..9f689f1da0fc05f051bbabc8f29a7fecd6faafc9 100644 (file)
@@ -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;
index 109e013b177295c927d133f525ff847ee6f8d985..e6955f5d1f08a7069ce7b9335815f7ef6e77dd04 100644 (file)
@@ -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 */