drm/exynos: vidi: Fix compilation error re: pitch
authorSean Paul <seanpaul@chromium.org>
Wed, 24 Oct 2012 20:53:30 +0000 (16:53 -0400)
committerGerrit <chrome-bot@google.com>
Fri, 26 Oct 2012 19:29:02 +0000 (12:29 -0700)
Was getting "'struct exynos_drm_overlay' has no member named 'pitch'"
compilation errors when compiling with VIDI enabled.

BUG=None
TEST=Compiles

Change-Id: I375ba229b538b25601745d01cf1c70dcd751d275
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36476

drivers/gpu/drm/exynos/exynos_drm_vidi.c

index 23b1664..26ab772 100644 (file)
@@ -286,9 +286,10 @@ static void vidi_win_mode_set(struct device *dev,
                return;
 
        offset = overlay->fb_x * (overlay->bpp >> 3);
-       offset += overlay->fb_y * overlay->pitch;
+       offset += overlay->fb_y * overlay->fb_pitch;
 
-       DRM_DEBUG_KMS("offset = 0x%lx, pitch = %x\n", offset, overlay->pitch);
+       DRM_DEBUG_KMS("offset = 0x%lx, fb_pitch = %x\n", offset,
+                       overlay->fb_pitch);
 
        win_data = &ctx->win_data[win];