drm/exynos: unregister unused plane of exynos5433 decon-tv
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 26 Jul 2016 02:04:47 +0000 (11:04 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 27 Jul 2016 01:27:58 +0000 (10:27 +0900)
The window 0 of exynos5433 decon-tv is unused in driver so it doesn't
need to register as plane. We can do this as consider first_win value of
driver data.

Change-Id: I5f68cb2055c78743ca24247f5e47a1532fb7b532
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index 82e722697212af5d0a4f1d93ed4f188d3fba57b2..01ed89a11206ca36b4232d06d13408cbd5cd96d8 100644 (file)
@@ -694,7 +694,7 @@ static int decon_bind(struct device *dev, struct device *master, void *data)
                drm_iommu_attach_device(drm_dev, ctx->dev);
        }
 
-       for (zpos = 0; zpos < WINDOWS_NR; zpos++) {
+       for (zpos = drv_data->first_win; zpos < WINDOWS_NR; zpos++) {
                type = (zpos == drv_data->first_win) ? DRM_PLANE_TYPE_PRIMARY :
                        DRM_PLANE_TYPE_OVERLAY;
                ret = exynos_plane_init(drm_dev, &ctx->planes[zpos],