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: Mario Limonciello <mario.limonciello@dell.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
This commit is contained in:
parent
b60ee4e091
commit
303d1fcc0b
@ -1264,8 +1264,8 @@ err_unreg_class:
|
||||
static void __exit acpi_wmi_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&acpi_wmi_driver);
|
||||
class_unregister(&wmi_bus_class);
|
||||
bus_unregister(&wmi_bus_type);
|
||||
class_unregister(&wmi_bus_class);
|
||||
}
|
||||
|
||||
subsys_initcall(acpi_wmi_init);
|
||||
|
Loading…
Reference in New Issue
Block a user