]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/utilities/utobject.c
Merge git://git.infradead.org/mtd-2.6
[linux-2.6-omap-h63xx.git] / drivers / acpi / utilities / utobject.c
index 924d05af94d27b7519300425d9f3ba73706695ba..c354e7a42bcde3ea4168ea0a0107a4b9ccfa358d 100644 (file)
@@ -43,7 +43,6 @@
 
 #include <acpi/acpi.h>
 #include <acpi/acnamesp.h>
-#include <acpi/amlcode.h>
 
 #define _COMPONENT          ACPI_UTILITIES
 ACPI_MODULE_NAME("utobject")
@@ -478,8 +477,8 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object,
 
        case ACPI_TYPE_LOCAL_REFERENCE:
 
-               switch (internal_object->reference.opcode) {
-               case AML_INT_NAMEPATH_OP:
+               switch (internal_object->reference.class) {
+               case ACPI_REFCLASS_NAME:
 
                        /*
                         * Get the actual length of the full pathname to this object.
@@ -504,9 +503,9 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object,
                         */
                        ACPI_ERROR((AE_INFO,
                                    "Cannot convert to external object - "
-                                   "unsupported Reference type [%s] %X in object %p",
+                                   "unsupported Reference Class [%s] %X in object %p",
                                    acpi_ut_get_reference_name(internal_object),
-                                   internal_object->reference.opcode,
+                                   internal_object->reference.class,
                                    internal_object));
                        status = AE_TYPE;
                        break;