From: Rob Clark Date: Tue, 8 Oct 2013 20:31:59 +0000 (-0400) Subject: drm/gma500: fix things after get/put page helpers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9aa8510dd68143cc9d66c520002b638983e254b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/gma500: fix things after get/put page helpers Commit 8b9ba7a3 'drm/gma500: use gem get/put page helpers' was missing a line, which resulted in garbled screen. Signed-off-by: Rob Clark Tested-by: Guillaume CLÉMENT Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index 92babac362ec..2db731f00930 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -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;