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

[PATCH RFC 07/13] of: Add empty of_get_next_child() function definition

From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: 2012-12-10 19:42:29
Also in: linux-media, lkml
Subsystem: open firmware and flattened device tree, the rest · Maintainers: Rob Herring, Saravana Kannan, Linus Torvalds

Add an empty of_get_next_child() function definition so users can
be build when CONFIG_OF is disabled and are not required to exclude
OF specific parts explicitly with #ifdefs.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 include/linux/of.h |    7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 7df42cc..fb92acc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -335,6 +335,13 @@ static inline bool of_have_populated_dt(void)
 #define for_each_available_child_of_node(parent, child) \
 	while (0)
 
+static inline struct device_node *of_get_next_child(
+					const struct device_node *node,
+					struct device_node *prev)
+{
+	return NULL;
+}
+
 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