File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2626struct 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
You can’t perform that action at this time.
0 commit comments