diff options
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r-- | drivers/acpi/utils.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 85e3b612bdc0..0f5f78fa6545 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c | |||
@@ -422,7 +422,7 @@ out: | |||
422 | EXPORT_SYMBOL(acpi_get_physical_device_location); | 422 | EXPORT_SYMBOL(acpi_get_physical_device_location); |
423 | 423 | ||
424 | /** | 424 | /** |
425 | * acpi_evaluate_hotplug_ost: Evaluate _OST for hotplug operations | 425 | * acpi_evaluate_ost: Evaluate _OST for hotplug operations |
426 | * @handle: ACPI device handle | 426 | * @handle: ACPI device handle |
427 | * @source_event: source event code | 427 | * @source_event: source event code |
428 | * @status_code: status code | 428 | * @status_code: status code |
@@ -433,17 +433,15 @@ EXPORT_SYMBOL(acpi_get_physical_device_location); | |||
433 | * When the platform does not support _OST, this function has no effect. | 433 | * When the platform does not support _OST, this function has no effect. |
434 | */ | 434 | */ |
435 | acpi_status | 435 | acpi_status |
436 | acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, | 436 | acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, |
437 | u32 status_code, struct acpi_buffer *status_buf) | 437 | struct acpi_buffer *status_buf) |
438 | { | 438 | { |
439 | #ifdef ACPI_HOTPLUG_OST | ||
440 | union acpi_object params[3] = { | 439 | union acpi_object params[3] = { |
441 | {.type = ACPI_TYPE_INTEGER,}, | 440 | {.type = ACPI_TYPE_INTEGER,}, |
442 | {.type = ACPI_TYPE_INTEGER,}, | 441 | {.type = ACPI_TYPE_INTEGER,}, |
443 | {.type = ACPI_TYPE_BUFFER,} | 442 | {.type = ACPI_TYPE_BUFFER,} |
444 | }; | 443 | }; |
445 | struct acpi_object_list arg_list = {3, params}; | 444 | struct acpi_object_list arg_list = {3, params}; |
446 | acpi_status status; | ||
447 | 445 | ||
448 | params[0].integer.value = source_event; | 446 | params[0].integer.value = source_event; |
449 | params[1].integer.value = status_code; | 447 | params[1].integer.value = status_code; |
@@ -455,13 +453,9 @@ acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, | |||
455 | params[2].buffer.length = 0; | 453 | params[2].buffer.length = 0; |
456 | } | 454 | } |
457 | 455 | ||
458 | status = acpi_evaluate_object(handle, "_OST", &arg_list, NULL); | 456 | return acpi_evaluate_object(handle, "_OST", &arg_list, NULL); |
459 | return status; | ||
460 | #else | ||
461 | return AE_OK; | ||
462 | #endif | ||
463 | } | 457 | } |
464 | EXPORT_SYMBOL(acpi_evaluate_hotplug_ost); | 458 | EXPORT_SYMBOL(acpi_evaluate_ost); |
465 | 459 | ||
466 | /** | 460 | /** |
467 | * acpi_handle_printk: Print message with ACPI prefix and object path | 461 | * acpi_handle_printk: Print message with ACPI prefix and object path |