diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
commit | da733563be5a9da26fe81d9f007262d00b846e22 (patch) | |
tree | db28291df94a2043af2123911984c5c173da4e6f /drivers/platform/x86/wmi.c | |
parent | 6ccbcf2cb41131f8d56ef0723bf3f7c1f8486076 (diff) | |
parent | dab78d7924598ea4031663dd10db814e2e324928 (diff) |
Merge branch 'next' into for-linus
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r-- | drivers/platform/x86/wmi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index f23d5a84e7b1..a134c26870b0 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/list.h> | 36 | #include <linux/list.h> |
37 | #include <linux/acpi.h> | 37 | #include <linux/acpi.h> |
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/module.h> | ||
39 | #include <acpi/acpi_bus.h> | 40 | #include <acpi/acpi_bus.h> |
40 | #include <acpi/acpi_drivers.h> | 41 | #include <acpi/acpi_drivers.h> |
41 | 42 | ||
@@ -754,9 +755,13 @@ static void wmi_free_devices(void) | |||
754 | struct wmi_block *wblock, *next; | 755 | struct wmi_block *wblock, *next; |
755 | 756 | ||
756 | /* Delete devices for all the GUIDs */ | 757 | /* Delete devices for all the GUIDs */ |
757 | list_for_each_entry_safe(wblock, next, &wmi_block_list, list) | 758 | list_for_each_entry_safe(wblock, next, &wmi_block_list, list) { |
759 | list_del(&wblock->list); | ||
758 | if (wblock->dev.class) | 760 | if (wblock->dev.class) |
759 | device_unregister(&wblock->dev); | 761 | device_unregister(&wblock->dev); |
762 | else | ||
763 | kfree(wblock); | ||
764 | } | ||
760 | } | 765 | } |
761 | 766 | ||
762 | static bool guid_already_parsed(const char *guid_string) | 767 | static bool guid_already_parsed(const char *guid_string) |