aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsxfeval.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/namespace/nsxfeval.c')
-rw-r--r--drivers/acpi/namespace/nsxfeval.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c
index f3cc37624537..a085cc39c055 100644
--- a/drivers/acpi/namespace/nsxfeval.c
+++ b/drivers/acpi/namespace/nsxfeval.c
@@ -45,7 +45,6 @@
45#include <acpi/acpi.h> 45#include <acpi/acpi.h>
46#include <acpi/acnamesp.h> 46#include <acpi/acnamesp.h>
47#include <acpi/acinterp.h> 47#include <acpi/acinterp.h>
48#include <acpi/amlcode.h>
49 48
50#define _COMPONENT ACPI_NAMESPACE 49#define _COMPONENT ACPI_NAMESPACE
51ACPI_MODULE_NAME("nsxfeval") 50ACPI_MODULE_NAME("nsxfeval")
@@ -399,13 +398,13 @@ static void acpi_ns_resolve_references(struct acpi_evaluate_info *info)
399 * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to 398 * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to
400 * an union acpi_object. 399 * an union acpi_object.
401 */ 400 */
402 switch (info->return_object->reference.opcode) { 401 switch (info->return_object->reference.class) {
403 case AML_INDEX_OP: 402 case ACPI_REFCLASS_INDEX:
404 403
405 obj_desc = *(info->return_object->reference.where); 404 obj_desc = *(info->return_object->reference.where);
406 break; 405 break;
407 406
408 case AML_REF_OF_OP: 407 case ACPI_REFCLASS_REFOF:
409 408
410 node = info->return_object->reference.object; 409 node = info->return_object->reference.object;
411 if (node) { 410 if (node) {