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

Commit 89bc61bc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Add ports and port child node check in legacy function"

parents 181b4fb1 7f20d186
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -69,6 +69,13 @@ static void of_coresight_get_ports_legacy(const struct device_node *node,
	struct device_node *ep = NULL;
	struct of_endpoint endpoint;
	int in = 0, out = 0;
	struct device_node *ports = NULL, *port = NULL;

	ports = of_get_child_by_name(node, "ports");
	port = of_get_child_by_name(node, "port");

	if (!ports && !port)
		return;

	do {
		ep = of_graph_get_next_endpoint(node, ep);