summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-10-15 10:58:09 -0600
committerGrant Likely <grant.likely@secretlab.ca>2009-10-15 10:58:09 -0600
commite91edcf5a2940bb7f1f316c871dfe9e2aaf9d6d9 (patch)
tree65030951a26540f26dc2f6b33d4b260879b3fdd2 /include/linux/of.h
parent82b2928c95d824afd9af3bb41660f3c3fa1f234e (diff)
downloadlinux-e91edcf5a2940bb7f1f316c871dfe9e2aaf9d6d9.tar.gz
linux-e91edcf5a2940bb7f1f316c871dfe9e2aaf9d6d9.tar.bz2
linux-e91edcf5a2940bb7f1f316c871dfe9e2aaf9d6d9.zip
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.h3
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)
dn->pde = de;
}
+extern struct device_node *of_find_all_nodes(struct device_node *prev);
+
#if defined(CONFIG_SPARC)
/* Dummy ref counting routines - to be implemented later */
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)
}
#else
-extern struct device_node *of_find_all_nodes(struct device_node *prev);
extern struct device_node *of_node_get(struct device_node *node);
extern void of_node_put(struct device_node *node);
#endif