summaryrefslogtreecommitdiff
path: root/drivers/staging/mei
diff options
context:
space:
mode:
authorOren Weil <oren.jer.weil@intel.com>2011-07-07 16:02:45 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-08 13:59:54 -0700
commitcbecb8bf564f706e7b4346d54be8a39f0309b91c (patch)
tree0664c092b72f05a3930c17087c71e444189e0bb1 /drivers/staging/mei
parentc3314080fede7b7ee84c2aa7001f72d46e884787 (diff)
staging: mei: reordering the exit module cleanup
keeping the exit flow in a reverse order then the init flow. Signed-off-by: Oren Weil <oren.jer.weil@intel.com> Acked-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/mei')
-rw-r--r--drivers/staging/mei/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mei/main.c b/drivers/staging/mei/main.c
index 8341a78517ed..de8825fcd8ce 100644
--- a/drivers/staging/mei/main.c
+++ b/drivers/staging/mei/main.c
@@ -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");
}