Skip to content

Commit

Permalink
drm/i915: Remove redundant initialisation of fb_base
Browse files Browse the repository at this point in the history
We do it whilst configuring dev->mode_config, so remove the out-of-place
earlier initialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Sep 8, 2010
1 parent 995b676 commit 5d607f9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,12 +1369,8 @@ static int i915_load_modeset_init(struct drm_device *dev,
unsigned long agp_size)
{
struct drm_i915_private *dev_priv = dev->dev_private;
int fb_bar = IS_I9XX(dev) ? 2 : 0;
int ret = 0;

dev->mode_config.fb_base = pci_resource_start(dev->pdev, fb_bar) &
0xff000000;

/* Basic memrange allocator for stolen space (aka vram) */
drm_mm_init(&dev_priv->vram, 0, prealloc_size);
DRM_INFO("set up %ldM of stolen space\n", prealloc_size / (1024*1024));
Expand Down

0 comments on commit 5d607f9

Please sign in to comment.