diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/wmi.c | 4 |
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 | */ |
783 | static acpi_status parse_wdg(acpi_handle handle) | 783 | static 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]; |