diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-24 17:16:16 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-20 13:32:58 +1000 |
commit | e679c5f445fe142940e0962de9c5c82f10d9357c (patch) | |
tree | 997daf76cc643fdc495ce0a667cfdc5b1c9515ab /include | |
parent | 581b605a83ec241a2aff8ef780e08b9414c8dfd8 (diff) | |
download | op-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 'include')
-rw-r--r-- | include/asm-sparc/prom.h | 9 | ||||
-rw-r--r-- | include/asm-sparc64/prom.h | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h index 57f86c8..c7d5495 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, extern void prom_build_devicetree(void); +/* Dummy ref counting routines - to be implemented later */ +static inline struct device_node *of_node_get(struct device_node *node) +{ + return node; +} +static inline void of_node_put(struct device_node *node) +{ +} + /* * NB: This is here while we transition from using asm/prom.h * to linux/of.h diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h index 6a5e240..e83896f 100644 --- a/include/asm-sparc64/prom.h +++ b/include/asm-sparc64/prom.h @@ -78,6 +78,15 @@ extern int of_getintprop_default(struct device_node *np, extern void prom_build_devicetree(void); +/* Dummy ref counting routines - to be implemented later */ +static inline struct device_node *of_node_get(struct device_node *node) +{ + return node; +} +static inline void of_node_put(struct device_node *node) +{ +} + /* * NB: This is here while we transition from using asm/prom.h * to linux/of.h |