Commit a036bb0e authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Rob Herring (Arm)
Browse files

of: base: Add of_get_next_child_with_prefix() stub



1fcc67e3 ("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: 1fcc67e3 ("of: base: Add for_each_child_of_node_with_prefix()")
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 4fea3336
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -550,6 +550,13 @@ static inline struct device_node *of_get_next_child(
	return NULL;
}

static inline struct device_node *of_get_next_child_with_prefix(
	const struct device_node *node, struct device_node *prev,
	const char *prefix)
{
	return NULL;
}

static inline struct device_node *of_get_next_available_child(
	const struct device_node *node, struct device_node *prev)
{