gma500: psb_driver_load(): drop unused variables
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:05:00 +0000 (16:05 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:06:05 +0000 (13:06 +0000)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/psb_drv.c

index 1234d094e54328d78bbfa9842caad7d0a51b5a63..fb1f5378c0fe47cba99a5967e1d799e1c11dec1b 100644 (file)
@@ -275,10 +275,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
 {
        struct drm_psb_private *dev_priv;
        unsigned long resource_start;
-       struct psb_gtt *pg;
        unsigned long irqflags;
        int ret = -ENOMEM;
-       uint32_t tt_pages;
        struct drm_connector *connector;
        struct psb_intel_encoder *psb_intel_encoder;
 
@@ -336,12 +334,6 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
        if (!dev_priv->mmu)
                goto out_err;
 
-       pg = &dev_priv->gtt;
-
-       tt_pages = (pg->gatt_pages < PSB_TT_PRIV0_PLIMIT) ?
-               (pg->gatt_pages) : PSB_TT_PRIV0_PLIMIT;
-
-
        dev_priv->pf_pd = psb_mmu_alloc_pd(dev_priv->mmu, 1, 0);
        if (!dev_priv->pf_pd)
                goto out_err;