aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index f954c718d7eb..28be19ab0f18 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -766,27 +766,6 @@ void __init early_init_devtree(void *params)
766 *******/ 766 *******/
767 767
768/** 768/**
769 * of_find_node_by_phandle - Find a node given a phandle
770 * @handle: phandle of the node to find
771 *
772 * Returns a node pointer with refcount incremented, use
773 * of_node_put() on it when done.
774 */
775struct device_node *of_find_node_by_phandle(phandle handle)
776{
777 struct device_node *np;
778
779 read_lock(&devtree_lock);
780 for (np = allnodes; np != 0; np = np->allnext)
781 if (np->phandle == handle)
782 break;
783 of_node_get(np);
784 read_unlock(&devtree_lock);
785 return np;
786}
787EXPORT_SYMBOL(of_find_node_by_phandle);
788
789/**
790 * of_find_next_cache_node - Find a node's subsidiary cache 769 * of_find_next_cache_node - Find a node's subsidiary cache
791 * @np: node of type "cpu" or "cache" 770 * @np: node of type "cpu" or "cache"
792 * 771 *