summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>2013-09-18 11:53:05 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-10-31 16:19:19 +1100
commita3e31b4588443f37d82195096c6b30dff1c152c2 (patch)
tree8a5dfd747a2d55e7106f2faeeb97d4e29fef6e15 /include/linux/of.h
parentafaf53985431bb295e4b723b08a55d0540cf8070 (diff)
downloadop-kernel-dev-a3e31b4588443f37d82195096c6b30dff1c152c2.zip
op-kernel-dev-a3e31b4588443f37d82195096c6b30dff1c152c2.tar.gz
of: Move definition of of_find_next_cache_node into common code.
Since the definition of_find_next_cache_node is architecture independent, the existing definition in powerpc can be moved to driver/of/base.c Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index f95aee3..c08c07e 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -226,6 +226,8 @@ static inline int of_get_child_count(const struct device_node *np)
return num;
}
+/* cache lookup */
+extern struct device_node *of_find_next_cache_node(const struct device_node *);
extern struct device_node *of_find_node_with_property(
struct device_node *from, const char *prop_name);
#define for_each_node_with_property(dn, prop_name) \
OpenPOWER on IntegriCloud