mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "Add ports and port child node check in legacy function"
This commit is contained in:
commit
89bc61bcc5
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue