aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 03d1d3a1a6c1..bf7d601fc37d 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1758,6 +1758,8 @@ int i915_driver_unload(struct drm_device *dev)
1758 } 1758 }
1759 1759
1760 if (drm_core_check_feature(dev, DRIVER_MODESET)) { 1760 if (drm_core_check_feature(dev, DRIVER_MODESET)) {
1761 intel_modeset_cleanup(dev);
1762
1761 /* 1763 /*
1762 * free the memory space allocated for the child device 1764 * free the memory space allocated for the child device
1763 * config parsed from VBT 1765 * config parsed from VBT
@@ -1781,8 +1783,6 @@ int i915_driver_unload(struct drm_device *dev)
1781 intel_opregion_free(dev, 0); 1783 intel_opregion_free(dev, 0);
1782 1784
1783 if (drm_core_check_feature(dev, DRIVER_MODESET)) { 1785 if (drm_core_check_feature(dev, DRIVER_MODESET)) {
1784 intel_modeset_cleanup(dev);
1785
1786 i915_gem_free_all_phys_object(dev); 1786 i915_gem_free_all_phys_object(dev);
1787 1787
1788 mutex_lock(&dev->struct_mutex); 1788 mutex_lock(&dev->struct_mutex);