aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/wmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/wmi.c')
-rw-r--r--drivers/acpi/wmi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c
index 5464cfcf8297..47cd7baf9b1b 100644
--- a/drivers/acpi/wmi.c
+++ b/drivers/acpi/wmi.c
@@ -271,7 +271,7 @@ u32 method_id, const struct acpi_buffer *in, struct acpi_buffer *out)
271 char method[4] = "WM"; 271 char method[4] = "WM";
272 272
273 if (!find_guid(guid_string, &wblock)) 273 if (!find_guid(guid_string, &wblock))
274 return AE_BAD_ADDRESS; 274 return AE_ERROR;
275 275
276 block = &wblock->gblock; 276 block = &wblock->gblock;
277 handle = wblock->handle; 277 handle = wblock->handle;
@@ -333,7 +333,7 @@ struct acpi_buffer *out)
333 return AE_BAD_PARAMETER; 333 return AE_BAD_PARAMETER;
334 334
335 if (!find_guid(guid_string, &wblock)) 335 if (!find_guid(guid_string, &wblock))
336 return AE_BAD_ADDRESS; 336 return AE_ERROR;
337 337
338 block = &wblock->gblock; 338 block = &wblock->gblock;
339 handle = wblock->handle; 339 handle = wblock->handle;
@@ -343,7 +343,7 @@ struct acpi_buffer *out)
343 343
344 /* Check GUID is a data block */ 344 /* Check GUID is a data block */
345 if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD)) 345 if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD))
346 return AE_BAD_ADDRESS; 346 return AE_ERROR;
347 347
348 input.count = 1; 348 input.count = 1;
349 input.pointer = wq_params; 349 input.pointer = wq_params;
@@ -414,7 +414,7 @@ const struct acpi_buffer *in)
414 return AE_BAD_DATA; 414 return AE_BAD_DATA;
415 415
416 if (!find_guid(guid_string, &wblock)) 416 if (!find_guid(guid_string, &wblock))
417 return AE_BAD_ADDRESS; 417 return AE_ERROR;
418 418
419 block = &wblock->gblock; 419 block = &wblock->gblock;
420 handle = wblock->handle; 420 handle = wblock->handle;
@@ -424,7 +424,7 @@ const struct acpi_buffer *in)
424 424
425 /* Check GUID is a data block */ 425 /* Check GUID is a data block */
426 if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD)) 426 if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD))
427 return AE_BAD_ADDRESS; 427 return AE_ERROR;
428 428
429 input.count = 2; 429 input.count = 2;
430 input.pointer = params; 430 input.pointer = params;