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 3f6238d96a5d..1ad56d3c6061 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1241,27 +1241,6 @@ struct device_node *of_find_all_nodes(struct device_node *prev)
1241EXPORT_SYMBOL(of_find_all_nodes); 1241EXPORT_SYMBOL(of_find_all_nodes);
1242 1242
1243/** 1243/**
1244 * of_get_parent - Get a node's parent if any
1245 * @node: Node to get parent
1246 *
1247 * Returns a node pointer with refcount incremented, use
1248 * of_node_put() on it when done.
1249 */
1250struct device_node *of_get_parent(const struct device_node *node)
1251{
1252 struct device_node *np;
1253
1254 if (!node)
1255 return NULL;
1256
1257 read_lock(&devtree_lock);
1258 np = of_node_get(node->parent);
1259 read_unlock(&devtree_lock);
1260 return np;
1261}
1262EXPORT_SYMBOL(of_get_parent);
1263
1264/**
1265 * of_get_next_child - Iterate a node childs 1244 * of_get_next_child - Iterate a node childs
1266 * @node: parent node 1245 * @node: parent node
1267 * @prev: previous child of the parent node, or NULL to get first 1246 * @prev: previous child of the parent node, or NULL to get first