drm/exynos: fix fb offset calculation for plane
[pandora-kernel.git] / drivers / gpu / drm / exynos / exynos_drm_plane.c
index 399b026..83efc66 100644 (file)
@@ -40,7 +40,7 @@ static const uint32_t formats[] = {
  * CRTC ----------------
  *      ^ start        ^ end
  *
- * There are six cases from a to b.
+ * There are six cases from a to f.
  *
  *             <----- SCREEN ----->
  *             0                 last
@@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
        if (crtc_x < 0) {
                if (actual_w)
                        src_x -= crtc_x;
-               else
-                       src_x += crtc_w;
                crtc_x = 0;
        }
 
        if (crtc_y < 0) {
                if (actual_h)
                        src_y -= crtc_y;
-               else
-                       src_y += crtc_h;
                crtc_y = 0;
        }