]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Call i915_globals_exit() after i915_pmu_exit()
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Jul 2021 15:23:53 +0000 (10:23 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Jul 2021 10:01:45 +0000 (12:01 +0200)
We should tear down in the opposite order we set up.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721152358.2893314-2-jason@jlekstrand.net
drivers/gpu/drm/i915/i915_pci.c

index 866ba136794c16b00f824173b248197be96953bf..2cdace47610b6b22f8dd119ab7197bcc91cb395c 100644 (file)
@@ -1209,8 +1209,8 @@ static void __exit i915_exit(void)
 
        i915_perf_sysctl_unregister();
        pci_unregister_driver(&i915_pci_driver);
-       i915_globals_exit();
        i915_pmu_exit();
+       i915_globals_exit();
 }
 
 module_init(i915_init);