提交 fbf107bd 编写于 作者: I Imre Deak

drm/i915: Move unload time opregion unregistration earlier

Move the opregion unregistration earlier to match its corresponding
registration order.
Signed-off-by: NImre Deak <imre.deak@intel.com>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458128348-15730-14-git-send-email-imre.deak@intel.com
上级 882c5a83
...@@ -1221,6 +1221,7 @@ int i915_driver_unload(struct drm_device *dev) ...@@ -1221,6 +1221,7 @@ int i915_driver_unload(struct drm_device *dev)
i915_teardown_sysfs(dev); i915_teardown_sysfs(dev);
acpi_video_unregister(); acpi_video_unregister();
intel_opregion_fini(dev);
i915_gem_shrinker_cleanup(dev_priv); i915_gem_shrinker_cleanup(dev_priv);
drm_vblank_cleanup(dev); drm_vblank_cleanup(dev);
...@@ -1250,8 +1251,6 @@ int i915_driver_unload(struct drm_device *dev) ...@@ -1250,8 +1251,6 @@ int i915_driver_unload(struct drm_device *dev)
cancel_delayed_work_sync(&dev_priv->gpu_error.hangcheck_work); cancel_delayed_work_sync(&dev_priv->gpu_error.hangcheck_work);
i915_destroy_error_state(dev); i915_destroy_error_state(dev);
intel_opregion_fini(dev);
/* Flush any outstanding unpin_work. */ /* Flush any outstanding unpin_work. */
flush_workqueue(dev_priv->wq); flush_workqueue(dev_priv->wq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册