|
@@ -427,6 +427,7 @@ static uint32_t imx_drm_find_crtc_mask(struct imx_drm_device *imxdrm,
|
|
|
|
|
|
for (i = 0; i < MAX_CRTC; i++) {
|
|
for (i = 0; i < MAX_CRTC; i++) {
|
|
struct imx_drm_crtc *imx_drm_crtc = imxdrm->crtc[i];
|
|
struct imx_drm_crtc *imx_drm_crtc = imxdrm->crtc[i];
|
|
|
|
+
|
|
if (imx_drm_crtc && imx_drm_crtc->port == port)
|
|
if (imx_drm_crtc && imx_drm_crtc->port == port)
|
|
return drm_crtc_mask(imx_drm_crtc->crtc);
|
|
return drm_crtc_mask(imx_drm_crtc->crtc);
|
|
}
|
|
}
|
|
@@ -438,6 +439,7 @@ static struct device_node *imx_drm_of_get_next_endpoint(
|
|
const struct device_node *parent, struct device_node *prev)
|
|
const struct device_node *parent, struct device_node *prev)
|
|
{
|
|
{
|
|
struct device_node *node = of_graph_get_next_endpoint(parent, prev);
|
|
struct device_node *node = of_graph_get_next_endpoint(parent, prev);
|
|
|
|
+
|
|
of_node_put(prev);
|
|
of_node_put(prev);
|
|
return node;
|
|
return node;
|
|
}
|
|
}
|