Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6f0747e authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Rob Herring
Browse files

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: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 5116b1de
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)