summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/prom.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-24 17:16:16 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2007-07-20 13:32:58 +1000
commite679c5f445fe142940e0962de9c5c82f10d9357c (patch)
tree997daf76cc643fdc495ce0a667cfdc5b1c9515ab /arch/sparc64/kernel/prom.c
parent581b605a83ec241a2aff8ef780e08b9414c8dfd8 (diff)
downloadop-kernel-dev-e679c5f445fe142940e0962de9c5c82f10d9357c.zip
op-kernel-dev-e679c5f445fe142940e0962de9c5c82f10d9357c.tar.gz
Consolidate of_get_parent
This requires creating dummy of_node_{get,put} routines for sparc and sparc64. It also adds a read_lock around the parent accesses. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Paul Mackerras <paulus@samba.org> Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/prom.c')
-rw-r--r--arch/sparc64/kernel/prom.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c
index a1ccc00..2462731 100644
--- a/arch/sparc64/kernel/prom.c
+++ b/arch/sparc64/kernel/prom.c
@@ -34,19 +34,6 @@ static struct device_node *allnodes;
extern rwlock_t devtree_lock; /* temporary while merging */
-struct device_node *of_get_parent(const struct device_node *node)
-{
- struct device_node *np;
-
- if (!node)
- return NULL;
-
- np = node->parent;
-
- return np;
-}
-EXPORT_SYMBOL(of_get_parent);
-
struct device_node *of_get_next_child(const struct device_node *node,
struct device_node *prev)
{
OpenPOWER on IntegriCloud