Skip to contentSkip to conversation

staging: mei: reordering the exit module cleanup

PATCH New Oren Weil 1 participant 1 message Jul 7, 2011 Staging

lore
Share & tools
lore

Oren Weil

author
#0 lore raw

PATCH v2 1/1 staging: mei: reordering the exit module cleanup

keeping the exit flow in a reverse order then the init flow.

---
v2: dropping 1/9 this is no part of any series.

 drivers/staging/mei/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/mei/main.c +1 -1
index 8341a78..de8825f 100644
@@ -1326,9 +1326,9 @@ module_init(mei_init_module);
  */
 static void __exit mei_exit_module(void)
 {
-	pci_unregister_driver(&mei_driver);
 	mei_sysfs_device_remove();
 	mei_unregister_cdev();
+	pci_unregister_driver(&mei_driver);
 
 	pr_debug("mei: Driver unloaded successfully.\n");
 }
Signature · 1 line
1.7.1