From cbecb8bf564f706e7b4346d54be8a39f0309b91c Mon Sep 17 00:00:00 2001 From: Oren Weil Date: Thu, 7 Jul 2011 16:02:45 +0300 Subject: [PATCH] staging: mei: reordering the exit module cleanup keeping the exit flow in a reverse order then the init flow. Signed-off-by: Oren Weil Acked-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- drivers/staging/mei/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5