diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:58:09 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:58:09 -0400 |
commit | e91edcf5a2940bb7f1f316c871dfe9e2aaf9d6d9 (patch) | |
tree | 65030951a26540f26dc2f6b33d4b260879b3fdd2 /include/linux/of.h | |
parent | 82b2928c95d824afd9af3bb41660f3c3fa1f234e (diff) |
of: merge of_find_all_nodes() implementations
Merge common code between Microblaze and PowerPC, and make it available
to Sparc
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 4636bba93afa..e7facd8fbce8 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -79,6 +79,8 @@ 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 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | ||
83 | |||
82 | #if defined(CONFIG_SPARC) | 84 | #if defined(CONFIG_SPARC) |
83 | /* Dummy ref counting routines - to be implemented later */ | 85 | /* Dummy ref counting routines - to be implemented later */ |
84 | static inline struct device_node *of_node_get(struct device_node *node) | 86 | static inline struct device_node *of_node_get(struct device_node *node) |
@@ -90,7 +92,6 @@ static inline void of_node_put(struct device_node *node) | |||
90 | } | 92 | } |
91 | 93 | ||
92 | #else | 94 | #else |
93 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | ||
94 | extern struct device_node *of_node_get(struct device_node *node); | 95 | extern struct device_node *of_node_get(struct device_node *node); |
95 | extern void of_node_put(struct device_node *node); | 96 | extern void of_node_put(struct device_node *node); |
96 | #endif | 97 | #endif |