summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/exynos/exynos_drm_vidi.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2017-03-15 15:41:04 +0100
committerInki Dae <inki.dae@samsung.com>2017-06-01 16:21:34 +0900
commitf44d3d2f84d6bc6b685f40a18e08b4bdcaf3d1ef (patch)
tree310ebfb7c8dfcd5c0d9daa5915e7d459ba24ab34 /drivers/gpu/drm/exynos/exynos_drm_vidi.c
parentd644951c2b2b013751e7dd5efe886340e196fab4 (diff)
drm/exynos: kill exynos_drm_private::pipe
The field duplicates drm_dev->mode_config.num_crtc. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_vidi.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 5e37bb004573..68870a938442 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -156,10 +156,8 @@ static void vidi_disable(struct exynos_drm_crtc *crtc)
static int vidi_ctx_initialize(struct vidi_context *ctx,
struct drm_device *drm_dev)
{
- struct exynos_drm_private *priv = drm_dev->dev_private;
-
ctx->drm_dev = drm_dev;
- ctx->pipe = priv->pipe++;
+ ctx->pipe = drm_dev->mode_config.num_crtc;
return 0;
}