Skip to content

Commit

Permalink
of: Add empty for_each_available_child_of_node() macro definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sylwester Nawrocki authored and Rob Herring committed Nov 3, 2013
1 parent 5116b1d commit f6f0747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6f0747

Please sign in to comment.