]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/shmobile: Restrict plane loops to only operate on legacy planes
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 1 Apr 2014 22:22:33 +0000 (15:22 -0700)
committerRob Clark <robdclark@gmail.com>
Wed, 2 Apr 2014 00:11:27 +0000 (20:11 -0400)
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>
drivers/gpu/drm/shmobile/shmob_drm_crtc.c

index 0428076f1ce8723d025e64cdea77df33777288b6..ea543b4d35107e6a69bb5901db4421f625b091be 100644 (file)
@@ -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);
        }