Message ID | 20200228200534.GO37466@atomide.com |
---|---|
State | New |
Headers | show |
Series | [RFC] drm/omap: Create only one primary plane for CRTC | expand |
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index d2750f60f519..122f8c4cf45b 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -268,7 +268,7 @@ static int omap_modeset_init(struct drm_device *dev) plane_crtc_mask = (1 << priv->num_pipes) - 1; for (i = 0; i < num_ovls; i++) { - enum drm_plane_type type = i < priv->num_pipes + enum drm_plane_type type = i == 0 ? DRM_PLANE_TYPE_PRIMARY : DRM_PLANE_TYPE_OVERLAY; struct drm_plane *plane;