소스 검색

drm/shmobile: Restrict plane loops to only operate on legacy planes

Ensure that existing driver loops over all planes do not change behavior
when we begin adding new types of planes (primary and cursor) to the DRM
plane list in future patches.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Matt Roper 11 년 전
부모
커밋
2b79dc13dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/gpu/drm/shmobile/shmob_drm_crtc.c

+ 1 - 1
drivers/gpu/drm/shmobile/shmob_drm_crtc.c

@@ -247,7 +247,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
 	lcdc_write(sdev, LDDDSR, value);
 	lcdc_write(sdev, LDDDSR, value);
 
 
 	/* Setup planes. */
 	/* Setup planes. */
-	list_for_each_entry(plane, &dev->mode_config.plane_list, head) {
+	drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) {
 		if (plane->crtc == crtc)
 		if (plane->crtc == crtc)
 			shmob_drm_plane_setup(plane);
 			shmob_drm_plane_setup(plane);
 	}
 	}