diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-24 03:16:16 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-19 23:32:58 -0400 |
commit | e679c5f445fe142940e0962de9c5c82f10d9357c (patch) | |
tree | 997daf76cc643fdc495ce0a667cfdc5b1c9515ab /arch/sparc/kernel/prom.c | |
parent | 581b605a83ec241a2aff8ef780e08b9414c8dfd8 (diff) |
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/sparc/kernel/prom.c')
-rw-r--r-- | arch/sparc/kernel/prom.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c index 0f5aab4326b3..b37871578087 100644 --- a/arch/sparc/kernel/prom.c +++ b/arch/sparc/kernel/prom.c | |||
@@ -29,19 +29,6 @@ static struct device_node *allnodes; | |||
29 | 29 | ||
30 | extern rwlock_t devtree_lock; /* temporary while merging */ | 30 | extern rwlock_t devtree_lock; /* temporary while merging */ |
31 | 31 | ||
32 | struct device_node *of_get_parent(const struct device_node *node) | ||
33 | { | ||
34 | struct device_node *np; | ||
35 | |||
36 | if (!node) | ||
37 | return NULL; | ||
38 | |||
39 | np = node->parent; | ||
40 | |||
41 | return np; | ||
42 | } | ||
43 | EXPORT_SYMBOL(of_get_parent); | ||
44 | |||
45 | struct device_node *of_get_next_child(const struct device_node *node, | 32 | struct device_node *of_get_next_child(const struct device_node *node, |
46 | struct device_node *prev) | 33 | struct device_node *prev) |
47 | { | 34 | { |