summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/shmobile/shmob_drm_crtc.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-04-01 15:22:33 -0700
committerRob Clark <robdclark@gmail.com>2014-04-01 20:11:27 -0400
commit2b79dc13dc88c72c89fc9c4e4589bfc1139a441d (patch)
tree8b695631dfd90aa34d81e9afc3228247ce89902a /drivers/gpu/drm/shmobile/shmob_drm_crtc.c
parentaf2b653bfb4ef40931b4d101ca842ce0c5da57ef (diff)
downloadblackbird-op-linux-2b79dc13dc88c72c89fc9c4e4589bfc1139a441d.tar.gz
blackbird-op-linux-2b79dc13dc88c72c89fc9c4e4589bfc1139a441d.zip
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>
Diffstat (limited to 'drivers/gpu/drm/shmobile/shmob_drm_crtc.c')
-rw-r--r--drivers/gpu/drm/shmobile/shmob_drm_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c
index 0428076f1ce8..ea543b4d3510 100644
--- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c
+++ b/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);
/* 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)
shmob_drm_plane_setup(plane);
}
OpenPOWER on IntegriCloud