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

gma500: psb_driver_load(): drop unused variables

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 699f0b45
...@@ -275,10 +275,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset) ...@@ -275,10 +275,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
{ {
struct drm_psb_private *dev_priv; struct drm_psb_private *dev_priv;
unsigned long resource_start; unsigned long resource_start;
struct psb_gtt *pg;
unsigned long irqflags; unsigned long irqflags;
int ret = -ENOMEM; int ret = -ENOMEM;
uint32_t tt_pages;
struct drm_connector *connector; struct drm_connector *connector;
struct psb_intel_encoder *psb_intel_encoder; struct psb_intel_encoder *psb_intel_encoder;
...@@ -336,12 +334,6 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset) ...@@ -336,12 +334,6 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
if (!dev_priv->mmu) if (!dev_priv->mmu)
goto out_err; 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); dev_priv->pf_pd = psb_mmu_alloc_pd(dev_priv->mmu, 1, 0);
if (!dev_priv->pf_pd) if (!dev_priv->pf_pd)
goto out_err; goto out_err;
......
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