Additional cleanup and comments for bz 5369

This commit is contained in:
rmoore1 2006-06-02 19:47:58 +00:00
parent 0b95670ed0
commit caea6bf655

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: exresolv - AML Interpreter object resolution
* $Revision: 1.138 $
* $Revision: 1.139 $
*
*****************************************************************************/
@ -354,21 +354,23 @@ AcpiExResolveObjectToValue (
case AML_INT_NAMEPATH_OP: /* Reference to a named object */
/* Get the object pointed to by the namespace node */
/* Dereference the name */
*StackPtr = (StackDesc->Reference.Node)->Object;
if ((StackDesc->Reference.Node->Type == ACPI_TYPE_DEVICE) ||
(StackDesc->Reference.Node->Type == ACPI_TYPE_THERMAL))
{
/* These do not have 'real' subobjects */
/* These node types do not have 'real' subobjects */
*StackPtr = (void *) StackDesc->Reference.Node;
}
else
{
/* Get the object pointed to by the namespace node */
*StackPtr = (StackDesc->Reference.Node)->Object;
AcpiUtAddReference (*StackPtr);
}
AcpiUtRemoveReference (StackDesc);
break;