summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-10-28 19:12:35 +0100
committerRob Herring <rob.herring@calxeda.com>2013-11-03 20:39:58 +0100
commitf6f0747e5bc69401d7f90313aa1b46709d27840a (patch)
tree77d5671eb7f533fec901edf6685db8624eb43cda /include
parentof: remove empty arch prom.h headers (diff)
downloadlinux-f6f0747e5bc69401d7f90313aa1b46709d27840a.tar.xz
linux-f6f0747e5bc69401d7f90313aa1b46709d27840a.zip
of: Add empty for_each_available_child_of_node() macro definition
Add this empty macro definition so users can be compiled without excluding this macro call with preprocessor directives when CONFIG_OF is disabled. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 54017b83650b..b97f685c941f 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -366,6 +366,9 @@ static inline bool of_have_populated_dt(void)
#define for_each_child_of_node(parent, child) \
while (0)
+#define for_each_available_child_of_node(parent, child) \
+ while (0)
+
static inline struct device_node *of_get_child_by_name(
const struct device_node *node,
const char *name)