Skip to content

Commit

Permalink
staging: mei: reordering the exit module cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oren Weil authored and Greg Kroah-Hartman committed Jul 8, 2011
1 parent c331408 commit cbecb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/mei/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit cbecb8b

Please sign in to comment.