forked from Minki/linux
gma500: psb_driver_load(): drop unused variables
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>
This commit is contained in:
parent
699f0b45ce
commit
1fc93332cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user