Skip to content

Commit

Permalink
drm/i915: cleanup mode setting before unmapping registers
Browse files Browse the repository at this point in the history
We'll turn off outputs etc at unload time, so don't unmap the registers
before doing it.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed May 7, 2010
1 parent ee5382a commit 3d8620c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,8 @@ int i915_driver_unload(struct drm_device *dev)
}

if (drm_core_check_feature(dev, DRIVER_MODESET)) {
intel_modeset_cleanup(dev);

/*
* free the memory space allocated for the child device
* config parsed from VBT
Expand All @@ -1781,8 +1783,6 @@ int i915_driver_unload(struct drm_device *dev)
intel_opregion_free(dev, 0);

if (drm_core_check_feature(dev, DRIVER_MODESET)) {
intel_modeset_cleanup(dev);

i915_gem_free_all_phys_object(dev);

mutex_lock(&dev->struct_mutex);
Expand Down

0 comments on commit 3d8620c

Please sign in to comment.