patch-2.4.26 linux-2.4.26/drivers/acpi/executer/exresnte.c

Next file: linux-2.4.26/drivers/acpi/executer/exresolv.c
Previous file: linux-2.4.26/drivers/acpi/executer/exprep.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/acpi/executer/exresnte.c linux-2.4.26/drivers/acpi/executer/exresnte.c
@@ -108,10 +108,11 @@
 	ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Entry=%p source_desc=%p [%s]\n",
 		 node, source_desc, acpi_ut_get_type_name (entry_type)));
 
-	if (entry_type == ACPI_TYPE_LOCAL_ALIAS) {
+	if ((entry_type == ACPI_TYPE_LOCAL_ALIAS) ||
+		(entry_type == ACPI_TYPE_LOCAL_METHOD_ALIAS)) {
 		/* There is always exactly one level of indirection */
 
-		node       = (struct acpi_namespace_node *) node->object;
+		node       = ACPI_CAST_PTR (struct acpi_namespace_node, node->object);
 		source_desc = acpi_ns_get_attached_object (node);
 		entry_type = acpi_ns_get_type ((acpi_handle) node);
 		*object_ptr = node;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)