Skip to content

Commit 8ff2aeb

Browse files
author
Jyri Sarha
committed
drm/tilcdc: Initialize dummy primary plane from crtc init
commit 47f571c upstream. (back ported for older drm_crtc_init_with_planes()) Initialize dummy primary plane from crtc init. Signed-off-by: Jyri Sarha <jsarha@ti.com>
1 parent 1098612 commit 8ff2aeb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/gpu/drm/tilcdc/tilcdc_crtc.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
struct tilcdc_crtc {
2727
struct drm_crtc base;
2828

29+
struct drm_plane primary;
2930
const struct tilcdc_panel_info *info;
3031
struct drm_pending_vblank_event *event;
3132
int dpms;
@@ -801,6 +802,10 @@ struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
801802

802803
crtc = &tilcdc_crtc->base;
803804

805+
ret = tilcdc_plane_init(dev, &tilcdc_crtc->primary);
806+
if (ret < 0)
807+
goto fail;
808+
804809
tilcdc_crtc->dpms = DRM_MODE_DPMS_OFF;
805810
init_waitqueue_head(&tilcdc_crtc->frame_done_wq);
806811

@@ -809,7 +814,10 @@ struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
809814

810815
spin_lock_init(&tilcdc_crtc->irq_lock);
811816

812-
ret = drm_crtc_init(dev, crtc, &tilcdc_crtc_funcs);
817+
ret = drm_crtc_init_with_planes(dev, crtc,
818+
&tilcdc_crtc->primary,
819+
NULL,
820+
&tilcdc_crtc_funcs);
813821
if (ret < 0)
814822
goto fail;
815823

0 commit comments

Comments
 (0)