Thread (24 messages) 24 messages, 5 authors, 2012-12-31
STALE4903d

[PATCH RFC 05/13] of: Add empty for_each_available_child_of_node() macro definition

From: Sylwester Nawrocki <hidden>
Date: 2012-12-10 19:44:51
Also in: linux-media, lkml
Subsystem: open firmware and flattened device tree, the rest · Maintainers: Rob Herring, Saravana Kannan, Linus Torvalds

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 <redacted>
Signed-off-by: Kyungmin Park <redacted>
---
 include/linux/of.h |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 2fb0dbe..7df42cc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -332,6 +332,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)
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help