diff options
Diffstat (limited to 'drivers/acpi/acpica/dswstate.c')
-rw-r--r-- | drivers/acpi/acpica/dswstate.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/acpi/acpica/dswstate.c b/drivers/acpi/acpica/dswstate.c index d0e6555061e4..3e65a15a735f 100644 --- a/drivers/acpi/acpica/dswstate.c +++ b/drivers/acpi/acpica/dswstate.c | |||
@@ -51,8 +51,9 @@ | |||
51 | ACPI_MODULE_NAME("dswstate") | 51 | ACPI_MODULE_NAME("dswstate") |
52 | 52 | ||
53 | /* Local prototypes */ | 53 | /* Local prototypes */ |
54 | static acpi_status acpi_ds_result_stack_push(struct acpi_walk_state *ws); | 54 | static acpi_status |
55 | static acpi_status acpi_ds_result_stack_pop(struct acpi_walk_state *ws); | 55 | acpi_ds_result_stack_push(struct acpi_walk_state *walk_state); |
56 | static acpi_status acpi_ds_result_stack_pop(struct acpi_walk_state *walk_state); | ||
56 | 57 | ||
57 | /******************************************************************************* | 58 | /******************************************************************************* |
58 | * | 59 | * |
@@ -347,7 +348,7 @@ acpi_ds_obj_stack_push(void *object, struct acpi_walk_state * walk_state) | |||
347 | * | 348 | * |
348 | * RETURN: Status | 349 | * RETURN: Status |
349 | * | 350 | * |
350 | * DESCRIPTION: Pop this walk's object stack. Objects on the stack are NOT | 351 | * DESCRIPTION: Pop this walk's object stack. Objects on the stack are NOT |
351 | * deleted by this routine. | 352 | * deleted by this routine. |
352 | * | 353 | * |
353 | ******************************************************************************/ | 354 | ******************************************************************************/ |
@@ -491,7 +492,7 @@ acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, | |||
491 | * RETURN: A walk_state object popped from the thread's stack | 492 | * RETURN: A walk_state object popped from the thread's stack |
492 | * | 493 | * |
493 | * DESCRIPTION: Remove and return the walkstate object that is at the head of | 494 | * DESCRIPTION: Remove and return the walkstate object that is at the head of |
494 | * the walk stack for the given walk list. NULL indicates that | 495 | * the walk stack for the given walk list. NULL indicates that |
495 | * the list is empty. | 496 | * the list is empty. |
496 | * | 497 | * |
497 | ******************************************************************************/ | 498 | ******************************************************************************/ |
@@ -531,14 +532,17 @@ struct acpi_walk_state *acpi_ds_pop_walk_state(struct acpi_thread_state *thread) | |||
531 | * | 532 | * |
532 | * RETURN: Pointer to the new walk state. | 533 | * RETURN: Pointer to the new walk state. |
533 | * | 534 | * |
534 | * DESCRIPTION: Allocate and initialize a new walk state. The current walk | 535 | * DESCRIPTION: Allocate and initialize a new walk state. The current walk |
535 | * state is set to this new state. | 536 | * state is set to this new state. |
536 | * | 537 | * |
537 | ******************************************************************************/ | 538 | ******************************************************************************/ |
538 | 539 | ||
539 | struct acpi_walk_state *acpi_ds_create_walk_state(acpi_owner_id owner_id, union acpi_parse_object | 540 | struct acpi_walk_state *acpi_ds_create_walk_state(acpi_owner_id owner_id, |
540 | *origin, union acpi_operand_object | 541 | union acpi_parse_object |
541 | *method_desc, struct acpi_thread_state | 542 | *origin, |
543 | union acpi_operand_object | ||
544 | *method_desc, | ||
545 | struct acpi_thread_state | ||
542 | *thread) | 546 | *thread) |
543 | { | 547 | { |
544 | struct acpi_walk_state *walk_state; | 548 | struct acpi_walk_state *walk_state; |
@@ -653,7 +657,7 @@ acpi_ds_init_aml_walk(struct acpi_walk_state *walk_state, | |||
653 | /* | 657 | /* |
654 | * Setup the current scope. | 658 | * Setup the current scope. |
655 | * Find a Named Op that has a namespace node associated with it. | 659 | * Find a Named Op that has a namespace node associated with it. |
656 | * search upwards from this Op. Current scope is the first | 660 | * search upwards from this Op. Current scope is the first |
657 | * Op with a namespace node. | 661 | * Op with a namespace node. |
658 | */ | 662 | */ |
659 | extra_op = parser_state->start_op; | 663 | extra_op = parser_state->start_op; |
@@ -704,13 +708,13 @@ void acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) | |||
704 | ACPI_FUNCTION_TRACE_PTR(ds_delete_walk_state, walk_state); | 708 | ACPI_FUNCTION_TRACE_PTR(ds_delete_walk_state, walk_state); |
705 | 709 | ||
706 | if (!walk_state) { | 710 | if (!walk_state) { |
707 | return; | 711 | return_VOID; |
708 | } | 712 | } |
709 | 713 | ||
710 | if (walk_state->descriptor_type != ACPI_DESC_TYPE_WALK) { | 714 | if (walk_state->descriptor_type != ACPI_DESC_TYPE_WALK) { |
711 | ACPI_ERROR((AE_INFO, "%p is not a valid walk state", | 715 | ACPI_ERROR((AE_INFO, "%p is not a valid walk state", |
712 | walk_state)); | 716 | walk_state)); |
713 | return; | 717 | return_VOID; |
714 | } | 718 | } |
715 | 719 | ||
716 | /* There should not be any open scopes */ | 720 | /* There should not be any open scopes */ |