diff options
author | Imre Deak <imre.deak@intel.com> | 2016-03-16 14:39:02 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2016-03-17 16:22:07 +0300 |
commit | fbf107bdbd449494e6b17589f0a8a02094b52a19 (patch) | |
tree | 014e4abd867c47eac612969d84432ce8f055b477 /drivers/gpu/drm/i915/i915_dma.c | |
parent | 882c5a83b5116bff597aefec16ad016641dfea05 (diff) | |
download | linux-fbf107bdbd449494e6b17589f0a8a02094b52a19.tar.xz |
drm/i915: Move unload time opregion unregistration earlier
Move the opregion unregistration earlier to match its corresponding
registration order.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458128348-15730-14-git-send-email-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index fb28a03e96c6..7618a3f4c21f 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1221,6 +1221,7 @@ int i915_driver_unload(struct drm_device *dev) i915_teardown_sysfs(dev); acpi_video_unregister(); + intel_opregion_fini(dev); i915_gem_shrinker_cleanup(dev_priv); drm_vblank_cleanup(dev); @@ -1250,8 +1251,6 @@ int i915_driver_unload(struct drm_device *dev) cancel_delayed_work_sync(&dev_priv->gpu_error.hangcheck_work); i915_destroy_error_state(dev); - intel_opregion_fini(dev); - /* Flush any outstanding unpin_work. */ flush_workqueue(dev_priv->wq); |