of: Add empty for_each_available_child_of_node() macro definition
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 28 Oct 2013 18:12:35 +0000 (13:12 -0500)
committerRob Herring <rob.herring@calxeda.com>
Sun, 3 Nov 2013 19:39:58 +0000 (13:39 -0600)
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>
include/linux/of.h

index 54017b8..b97f685 100644 (file)
@@ -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)