diff options
Diffstat (limited to 'drivers/acpi/namespace')
-rw-r--r-- | drivers/acpi/namespace/nsaccess.c | 8 | ||||
-rw-r--r-- | drivers/acpi/namespace/nssearch.c | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c index 5e3f63a90fb4..ba8ad569188f 100644 --- a/drivers/acpi/namespace/nsaccess.c +++ b/drivers/acpi/namespace/nsaccess.c | |||
@@ -157,7 +157,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
157 | 157 | ||
158 | #if defined (ACPI_ASL_COMPILER) | 158 | #if defined (ACPI_ASL_COMPILER) |
159 | 159 | ||
160 | /* save the parameter count for the i_aSL compiler */ | 160 | /* Save the parameter count for the i_aSL compiler */ |
161 | 161 | ||
162 | new_node->value = obj_desc->method.param_count; | 162 | new_node->value = obj_desc->method.param_count; |
163 | #else | 163 | #else |
@@ -311,8 +311,7 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
311 | acpi_object_type type_to_check_for; | 311 | acpi_object_type type_to_check_for; |
312 | acpi_object_type this_search_type; | 312 | acpi_object_type this_search_type; |
313 | u32 search_parent_flag = ACPI_NS_SEARCH_PARENT; | 313 | u32 search_parent_flag = ACPI_NS_SEARCH_PARENT; |
314 | u32 local_flags = flags & ~(ACPI_NS_ERROR_IF_FOUND | | 314 | u32 local_flags; |
315 | ACPI_NS_SEARCH_PARENT); | ||
316 | 315 | ||
317 | ACPI_FUNCTION_TRACE(ns_lookup); | 316 | ACPI_FUNCTION_TRACE(ns_lookup); |
318 | 317 | ||
@@ -320,8 +319,9 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
320 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 319 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
321 | } | 320 | } |
322 | 321 | ||
323 | acpi_gbl_ns_lookup_count++; | 322 | local_flags = flags & ~(ACPI_NS_ERROR_IF_FOUND | ACPI_NS_SEARCH_PARENT); |
324 | *return_node = ACPI_ENTRY_NOT_FOUND; | 323 | *return_node = ACPI_ENTRY_NOT_FOUND; |
324 | acpi_gbl_ns_lookup_count++; | ||
325 | 325 | ||
326 | if (!acpi_gbl_root_node) { | 326 | if (!acpi_gbl_root_node) { |
327 | return_ACPI_STATUS(AE_NO_NAMESPACE); | 327 | return_ACPI_STATUS(AE_NO_NAMESPACE); |
diff --git a/drivers/acpi/namespace/nssearch.c b/drivers/acpi/namespace/nssearch.c index 34ac512a2d5e..d2473476afa5 100644 --- a/drivers/acpi/namespace/nssearch.c +++ b/drivers/acpi/namespace/nssearch.c | |||
@@ -299,7 +299,7 @@ acpi_ns_search_and_enter(u32 target_name, | |||
299 | 299 | ||
300 | if (!node || !target_name || !return_node) { | 300 | if (!node || !target_name || !return_node) { |
301 | ACPI_ERROR((AE_INFO, | 301 | ACPI_ERROR((AE_INFO, |
302 | "Null param: Node %p Name %X ReturnNode %p", | 302 | "Null parameter: Node %p Name %X ReturnNode %p", |
303 | node, target_name, return_node)); | 303 | node, target_name, return_node)); |
304 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 304 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
305 | } | 305 | } |
@@ -385,6 +385,11 @@ acpi_ns_search_and_enter(u32 target_name, | |||
385 | if (!new_node) { | 385 | if (!new_node) { |
386 | return_ACPI_STATUS(AE_NO_MEMORY); | 386 | return_ACPI_STATUS(AE_NO_MEMORY); |
387 | } | 387 | } |
388 | #ifdef ACPI_ASL_COMPILER | ||
389 | if (flags & ACPI_NS_EXTERNAL) { | ||
390 | new_node->flags |= ANOBJ_IS_EXTERNAL; | ||
391 | } | ||
392 | #endif | ||
388 | 393 | ||
389 | /* Install the new object into the parent's list of children */ | 394 | /* Install the new object into the parent's list of children */ |
390 | 395 | ||