diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2017-09-26 13:50:04 -0500 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-09-27 14:57:45 -0700 |
commit | 303d1fcc0bf07129bc05a61632fad9f7064b671f (patch) | |
tree | e7fdef37f4805730ceea25d32a0b3e2edd4c0175 /drivers/platform/x86/wmi.c | |
parent | b60ee4e0918db95a1e458ae160488368c45a0687 (diff) | |
download | talos-obmc-linux-303d1fcc0bf07129bc05a61632fad9f7064b671f.tar.gz talos-obmc-linux-303d1fcc0bf07129bc05a61632fad9f7064b671f.zip |
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>
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r-- | drivers/platform/x86/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index e19b074df01d..acbc2b02db3d 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -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); |