Skip to content

Commit a036bb0

Browse files
bjorn-helgaasrobherring
authored andcommitted
of: base: Add of_get_next_child_with_prefix() stub
1fcc67e ("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: 1fcc67e ("of: base: Add for_each_child_of_node_with_prefix()") Signed-off-by: Bjorn Helgaas <[email protected]> Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 4fea333 commit a036bb0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/linux/of.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,13 @@ static inline struct device_node *of_get_next_child(
550550
return NULL;
551551
}
552552

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+
553560
static inline struct device_node *of_get_next_available_child(
554561
const struct device_node *node, struct device_node *prev)
555562
{

0 commit comments

Comments
 (0)