drm/i915: Fix sparse warnings in from AGP kill code

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Ben Widawsky 2012-11-06 09:50:16 +00:00 committed by Daniel Vetter
parent 44cbd33899
commit ccdf56cdb2

View File

@ -439,7 +439,7 @@ static void gen6_ggtt_bind_object(struct drm_i915_gem_object *obj,
len = sg_dma_len(sg) >> PAGE_SHIFT;
for (m = 0; m < len; m++) {
addr = sg_dma_address(sg) + (m << PAGE_SHIFT);
gtt_entries[i] = pte_encode(dev, addr, level);
iowrite32(pte_encode(dev, addr, level), &gtt_entries[i]);
i++;
}
}