summaryrefslogtreecommitdiff
path: root/drivers/staging/gma500/mrst_crtc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-12-20 10:22:18 +0000
committerDave Airlie <airlied@redhat.com>2011-12-20 10:22:18 +0000
commit9e38a66171a297f150a0332469ca3f186f2766da (patch)
tree7d6c535dd11f1ec4dc9af809be426b4caecd345a /drivers/staging/gma500/mrst_crtc.c
parent01f2c7730e188077026c5f766f85f329c7000c54 (diff)
staging/gma500: fixup staging code to build following core changes.
This just fixes up the staging code to keep building. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/staging/gma500/mrst_crtc.c')
-rw-r--r--drivers/staging/gma500/mrst_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/gma500/mrst_crtc.c b/drivers/staging/gma500/mrst_crtc.c
index c9311a573c2..980837e37d8 100644
--- a/drivers/staging/gma500/mrst_crtc.c
+++ b/drivers/staging/gma500/mrst_crtc.c
@@ -543,9 +543,9 @@ int mrst_pipe_set_base(struct drm_crtc *crtc,
return 0;
start = psbfb->gtt->offset;
- offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8);
+ offset = y * crtc->fb->pitches[0] + x * (crtc->fb->bits_per_pixel / 8);
- REG_WRITE(dspstride, crtc->fb->pitch);
+ REG_WRITE(dspstride, crtc->fb->pitches[0]);
dspcntr = REG_READ(dspcntr_reg);
dspcntr &= ~DISPPLANE_PIXFORMAT_MASK;