drm/gma500: fix things after get/put page helpers
authorRob Clark <robdclark@gmail.com>
Tue, 8 Oct 2013 20:31:59 +0000 (16:31 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2013 06:04:32 +0000 (16:04 +1000)
Commit 8b9ba7a3 'drm/gma500: use gem get/put page helpers' was missing a
line, which resulted in garbled screen.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Tested-by: Guillaume CLÉMENT <gclement@baobob.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/gtt.c

index 92babac..2db731f 100644 (file)
@@ -204,6 +204,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
        if (IS_ERR(pages))
                return PTR_ERR(pages);
 
+       gt->npage = gt->gem.size / PAGE_SIZE;
        gt->pages = pages;
 
        return 0;