diff options
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 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 | ||
70 | extern void prom_build_devicetree(void); | 70 | extern void prom_build_devicetree(void); |
71 | 71 | ||
72 | /* Dummy ref counting routines - to be implemented later */ | ||
73 | static inline struct device_node *of_node_get(struct device_node *node) | ||
74 | { | ||
75 | return node; | ||
76 | } | ||
77 | static 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 |
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h index 6a5e2405cbf4..e83896f3c141 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, | |||
78 | 78 | ||
79 | extern void prom_build_devicetree(void); | 79 | extern void prom_build_devicetree(void); |
80 | 80 | ||
81 | /* Dummy ref counting routines - to be implemented later */ | ||
82 | static inline struct device_node *of_node_get(struct device_node *node) | ||
83 | { | ||
84 | return node; | ||
85 | } | ||
86 | static inline void of_node_put(struct device_node *node) | ||
87 | { | ||
88 | } | ||
89 | |||
81 | /* | 90 | /* |
82 | * NB: This is here while we transition from using asm/prom.h | 91 | * NB: This is here while we transition from using asm/prom.h |
83 | * to linux/of.h | 92 | * to linux/of.h |