Commit f728bd1a authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Dave Airlie

gma500: psb_gtt_init(): drop unused variable

Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 25933dde
...@@ -413,7 +413,6 @@ int psb_gtt_init(struct drm_device *dev, int resume) ...@@ -413,7 +413,6 @@ int psb_gtt_init(struct drm_device *dev, int resume)
unsigned long stolen_size, vram_stolen_size; unsigned long stolen_size, vram_stolen_size;
unsigned i, num_pages; unsigned i, num_pages;
unsigned pfn_base; unsigned pfn_base;
uint32_t vram_pages;
uint32_t dvmt_mode = 0; uint32_t dvmt_mode = 0;
struct psb_gtt *pg; struct psb_gtt *pg;
...@@ -529,7 +528,7 @@ int psb_gtt_init(struct drm_device *dev, int resume) ...@@ -529,7 +528,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
*/ */
pfn_base = dev_priv->stolen_base >> PAGE_SHIFT; pfn_base = dev_priv->stolen_base >> PAGE_SHIFT;
vram_pages = num_pages = vram_stolen_size >> PAGE_SHIFT; num_pages = vram_stolen_size >> PAGE_SHIFT;
printk(KERN_INFO"Set up %d stolen pages starting at 0x%08x, GTT offset %dK\n", printk(KERN_INFO"Set up %d stolen pages starting at 0x%08x, GTT offset %dK\n",
num_pages, pfn_base << PAGE_SHIFT, 0); num_pages, pfn_base << PAGE_SHIFT, 0);
for (i = 0; i < num_pages; ++i) { for (i = 0; i < num_pages; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment