aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-24 03:16:16 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2007-07-19 23:32:58 -0400
commite679c5f445fe142940e0962de9c5c82f10d9357c (patch)
tree997daf76cc643fdc495ce0a667cfdc5b1c9515ab /include/asm-sparc
parent581b605a83ec241a2aff8ef780e08b9414c8dfd8 (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 'include/asm-sparc')
-rw-r--r--include/asm-sparc/prom.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h
index 57f86c84293b..c7d54958a90e 100644
--- a/include/asm-sparc/prom.h
+++ b/include/asm-sparc/prom.h
@@ -69,6 +69,15 @@ extern int of_getintprop_default(struct device_node *np,
69 69
70extern void prom_build_devicetree(void); 70extern void prom_build_devicetree(void);
71 71
72/* Dummy ref counting routines - to be implemented later */
73static inline struct device_node *of_node_get(struct device_node *node)
74{
75 return node;
76}
77static inline void of_node_put(struct device_node *node)
78{
79}
80
72/* 81/*
73 * NB: This is here while we transition from using asm/prom.h 82 * NB: This is here while we transition from using asm/prom.h
74 * to linux/of.h 83 * to linux/of.h