aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_plane.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
index 399b02663aef..83efc662d65a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
@@ -40,7 +40,7 @@ static const uint32_t formats[] = {
40 * CRTC ---------------- 40 * CRTC ----------------
41 * ^ start ^ end 41 * ^ start ^ end
42 * 42 *
43 * There are six cases from a to b. 43 * There are six cases from a to f.
44 * 44 *
45 * <----- SCREEN -----> 45 * <----- SCREEN ----->
46 * 0 last 46 * 0 last
@@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
104 if (crtc_x < 0) { 104 if (crtc_x < 0) {
105 if (actual_w) 105 if (actual_w)
106 src_x -= crtc_x; 106 src_x -= crtc_x;
107 else
108 src_x += crtc_w;
109 crtc_x = 0; 107 crtc_x = 0;
110 } 108 }
111 109
112 if (crtc_y < 0) { 110 if (crtc_y < 0) {
113 if (actual_h) 111 if (actual_h)
114 src_y -= crtc_y; 112 src_y -= crtc_y;
115 else
116 src_y += crtc_h;
117 crtc_y = 0; 113 crtc_y = 0;
118 } 114 }
119 115