aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/wmi.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-09-15 17:42:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-15 17:42:59 -0400
commitcd619e21ea468b02af9eeed75eae2307ec7de1cb (patch)
tree7d9febcbea96480d9b9f9ef291ad45ada3eac978 /drivers/platform/x86/wmi.c
parent0375ec5899a37e80af7be8e813548df3292325ff (diff)
parent5c07eae979dfb596141c6885e5f5ecf1cd22cad3 (diff)
Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86
Pull x86 platform updates from Matthew Garrett: "Nothing amazing here, almost entirely cleanups and minor bugfixes and one bit of hardware enablement in the amilo-rfkill driver" * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: platform/x86: panasonic-laptop: reuse module_acpi_driver samsung-laptop: fix config build error platform: x86: remove unnecessary platform_set_drvdata() amilo-rfkill: Enable using amilo-rfkill with the FSC Amilo L1310. wmi: parse_wdg() should return kernel error codes hp_wmi: Fix unregister order in hp_wmi_rfkill_setup() platform: replace strict_strto*() with kstrto*() x86: irst: use module_acpi_driver to simplify the code x86: smartconnect: use module_acpi_driver to simplify the code platform samsung-q10: use ACPI instead of direct EC calls thinkpad_acpi: add the ability setting TPACPI_LED_NONE by quirk thinkpad_acpi: return -NODEV while operating uninitialized LEDs
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r--drivers/platform/x86/wmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 6e02c953d888..601ea9512242 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -780,7 +780,7 @@ static bool guid_already_parsed(const char *guid_string)
780/* 780/*
781 * Parse the _WDG method for the GUID data blocks 781 * Parse the _WDG method for the GUID data blocks
782 */ 782 */
783static acpi_status parse_wdg(acpi_handle handle) 783static int parse_wdg(acpi_handle handle)
784{ 784{
785 struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL}; 785 struct acpi_buffer out = {ACPI_ALLOCATE_BUFFER, NULL};
786 union acpi_object *obj; 786 union acpi_object *obj;
@@ -812,7 +812,7 @@ static acpi_status parse_wdg(acpi_handle handle)
812 812
813 wblock = kzalloc(sizeof(struct wmi_block), GFP_KERNEL); 813 wblock = kzalloc(sizeof(struct wmi_block), GFP_KERNEL);
814 if (!wblock) 814 if (!wblock)
815 return AE_NO_MEMORY; 815 return -ENOMEM;
816 816
817 wblock->handle = handle; 817 wblock->handle = handle;
818 wblock->gblock = gblock[i]; 818 wblock->gblock = gblock[i];