···517517 of_node_put(port);518518 if (port == imx_crtc->port) {519519 ret = of_graph_parse_endpoint(ep, &endpoint);520520- return ret ? ret : endpoint.id;520520+ return ret ? ret : endpoint.port;521521 }522522 } while (ep);523523···673673 for_each_child_of_node(port, ep) {674674 remote = of_graph_get_remote_port_parent(ep);675675 if (!remote || !of_device_is_available(remote)) {676676+ of_node_put(remote);677677+ continue;678678+ } else if (!of_device_is_available(remote->parent)) {679679+ dev_warn(&pdev->dev, "parent device of %s is not available\n",680680+ remote->full_name);676681 of_node_put(remote);677682 continue;678683 }