|
@@ -283,7 +283,6 @@ static int sun4i_drv_add_endpoints(struct device *dev,
|
|
remote = of_graph_get_remote_port_parent(ep);
|
|
remote = of_graph_get_remote_port_parent(ep);
|
|
if (!remote) {
|
|
if (!remote) {
|
|
DRM_DEBUG_DRIVER("Error retrieving the output node\n");
|
|
DRM_DEBUG_DRIVER("Error retrieving the output node\n");
|
|
- of_node_put(remote);
|
|
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -297,11 +296,13 @@ static int sun4i_drv_add_endpoints(struct device *dev,
|
|
|
|
|
|
if (of_graph_parse_endpoint(ep, &endpoint)) {
|
|
if (of_graph_parse_endpoint(ep, &endpoint)) {
|
|
DRM_DEBUG_DRIVER("Couldn't parse endpoint\n");
|
|
DRM_DEBUG_DRIVER("Couldn't parse endpoint\n");
|
|
|
|
+ of_node_put(remote);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
if (!endpoint.id) {
|
|
if (!endpoint.id) {
|
|
DRM_DEBUG_DRIVER("Endpoint is our panel... skipping\n");
|
|
DRM_DEBUG_DRIVER("Endpoint is our panel... skipping\n");
|
|
|
|
+ of_node_put(remote);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
}
|