patch-2.4.26 linux-2.4.26/drivers/acpi/namespace/nssearch.c

Next file: linux-2.4.26/drivers/acpi/namespace/nsutils.c
Previous file: linux-2.4.26/drivers/acpi/namespace/nseval.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/acpi/namespace/nssearch.c linux-2.4.26/drivers/acpi/namespace/nssearch.c
@@ -113,6 +113,12 @@
 		/* Check for match against the name */
 
 		if (next_node->name.integer == target_name) {
+			/* Resolve a control method alias if any */
+
+			if (acpi_ns_get_type (next_node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) {
+				next_node = ACPI_CAST_PTR (struct acpi_namespace_node, next_node->object);
+			}
+
 			/*
 			 * Found matching entry.
 			 */

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