Commit 303d1fcc authored by Mario Limonciello's avatar Mario Limonciello Committed by Darren Hart (VMware)

platform/x86: wmi: Cleanup exit routine in reverse order of init

The initialize routine is:
* class -> bus -> platform

The exit routine is:
* platform -> class -> bus

Fix the exit routine to be:
* platform -> bus -> class
Signed-off-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent b60ee4e0
...@@ -1264,8 +1264,8 @@ static int __init acpi_wmi_init(void) ...@@ -1264,8 +1264,8 @@ static int __init acpi_wmi_init(void)
static void __exit acpi_wmi_exit(void) static void __exit acpi_wmi_exit(void)
{ {
platform_driver_unregister(&acpi_wmi_driver); platform_driver_unregister(&acpi_wmi_driver);
class_unregister(&wmi_bus_class);
bus_unregister(&wmi_bus_type); bus_unregister(&wmi_bus_type);
class_unregister(&wmi_bus_class);
} }
subsys_initcall(acpi_wmi_init); subsys_initcall(acpi_wmi_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment