aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 18e4379b8b7f..4636bba93afa 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -79,6 +79,22 @@ set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de)
79 dn->pde = de; 79 dn->pde = de;
80} 80}
81 81
82#if defined(CONFIG_SPARC)
83/* Dummy ref counting routines - to be implemented later */
84static inline struct device_node *of_node_get(struct device_node *node)
85{
86 return node;
87}
88static inline void of_node_put(struct device_node *node)
89{
90}
91
92#else
93extern struct device_node *of_find_all_nodes(struct device_node *prev);
94extern struct device_node *of_node_get(struct device_node *node);
95extern void of_node_put(struct device_node *node);
96#endif
97
82/* 98/*
83 * OF address retreival & translation 99 * OF address retreival & translation
84 */ 100 */