gma500: fix warnings
authorAlan Cox <alan@linux.intel.com>
Thu, 16 Jun 2011 16:06:09 +0000 (17:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:16:29 +0000 (14:16 -0700)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_gtt.c

index 74c5a6569d08674bba05a49888d131a459b74f9a..1d0e242fb390521511b783f08b498e495ed0d816 100644 (file)
@@ -78,7 +78,6 @@ u32 *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r)
  */
 static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r)
 {
-        struct drm_psb_private *dev_priv = dev->dev_private;
        u32 *gtt_slot, pte;
        int numpages = (r->resource.end + 1 - r->resource.start) >> PAGE_SHIFT;
        struct page **pages;
@@ -490,7 +489,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
                goto out_err;
        }
 
-       DRM_DEBUG("%s: vram kernel virtual address %p\n", dev_priv->vram_addr);
+       DRM_DEBUG("gma500: vram kernel virtual address %p\n", dev_priv->vram_addr);
 
        tt_pages = (pg->gatt_pages < PSB_TT_PRIV0_PLIMIT) ?
                (pg->gatt_pages) : PSB_TT_PRIV0_PLIMIT;