Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

of: base: Add of_get_next_child_with_prefix() stub

1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()") added
of_get_next_child_with_prefix() but did not add a stub for the !CONFIG_OF
case.

Add a of_get_next_child_with_prefix() stub so users of
for_each_child_of_node_with_prefix() can be built for compile testing even
when !CONFIG_OF.

Fixes: 1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Bjorn Helgaas and committed by
Rob Herring (Arm)
a036bb0e 4fea3336

+7
+7
include/linux/of.h
··· 550 550 return NULL; 551 551 } 552 552 553 + static inline struct device_node *of_get_next_child_with_prefix( 554 + const struct device_node *node, struct device_node *prev, 555 + const char *prefix) 556 + { 557 + return NULL; 558 + } 559 + 553 560 static inline struct device_node *of_get_next_available_child( 554 561 const struct device_node *node, struct device_node *prev) 555 562 {