[PATCH] drm/exynos: fix the number of overlay planes

Hyungwon Hwang human.hwang at samsung.com
Thu Mar 12 07:10:41 PDT 2015


The number of overlay planes is one less than the maximum number of
planes, because the one is used for primary plane.

Signed-off-by: Hyungwon Hwang <human.hwang at samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 90168d7..98a239a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -81,7 +81,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
 
 	exynos_drm_mode_config_init(dev);
 
-	for (nr = 0; nr < MAX_PLANE; nr++) {
+	for (nr = 0; nr < MAX_PLANE - 1; nr++) {
 		struct drm_plane *plane;
 		unsigned long possible_crtcs = (1 << MAX_CRTC) - 1;
 
-- 
1.9.1



More information about the dri-devel mailing list