diff options
Diffstat (limited to 'drivers/acpi/acpica/nsaccess.c')
| -rw-r--r-- | drivers/acpi/acpica/nsaccess.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/nsaccess.c b/drivers/acpi/acpica/nsaccess.c index 24fa19a76d70..c687b9979fb2 100644 --- a/drivers/acpi/acpica/nsaccess.c +++ b/drivers/acpi/acpica/nsaccess.c | |||
| @@ -102,7 +102,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
| 102 | 102 | ||
| 103 | /* _OSI is optional for now, will be permanent later */ | 103 | /* _OSI is optional for now, will be permanent later */ |
| 104 | 104 | ||
| 105 | if (!ACPI_STRCMP(init_val->name, "_OSI") | 105 | if (!strcmp(init_val->name, "_OSI") |
| 106 | && !acpi_gbl_create_osi_method) { | 106 | && !acpi_gbl_create_osi_method) { |
| 107 | continue; | 107 | continue; |
| 108 | } | 108 | } |
| @@ -180,7 +180,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
| 180 | 180 | ||
| 181 | /* Build an object around the static string */ | 181 | /* Build an object around the static string */ |
| 182 | 182 | ||
| 183 | obj_desc->string.length = (u32)ACPI_STRLEN(val); | 183 | obj_desc->string.length = (u32)strlen(val); |
| 184 | obj_desc->string.pointer = val; | 184 | obj_desc->string.pointer = val; |
| 185 | obj_desc->common.flags |= AOPOBJ_STATIC_POINTER; | 185 | obj_desc->common.flags |= AOPOBJ_STATIC_POINTER; |
| 186 | break; | 186 | break; |
| @@ -203,7 +203,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
| 203 | 203 | ||
| 204 | /* Special case for ACPI Global Lock */ | 204 | /* Special case for ACPI Global Lock */ |
| 205 | 205 | ||
| 206 | if (ACPI_STRCMP(init_val->name, "_GL_") == 0) { | 206 | if (strcmp(init_val->name, "_GL_") == 0) { |
| 207 | acpi_gbl_global_lock_mutex = obj_desc; | 207 | acpi_gbl_global_lock_mutex = obj_desc; |
| 208 | 208 | ||
| 209 | /* Create additional counting semaphore for global lock */ | 209 | /* Create additional counting semaphore for global lock */ |
| @@ -304,7 +304,9 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
| 304 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 304 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | local_flags = flags & ~(ACPI_NS_ERROR_IF_FOUND | ACPI_NS_SEARCH_PARENT); | 307 | local_flags = flags & |
| 308 | ~(ACPI_NS_ERROR_IF_FOUND | ACPI_NS_OVERRIDE_IF_FOUND | | ||
| 309 | ACPI_NS_SEARCH_PARENT); | ||
| 308 | *return_node = ACPI_ENTRY_NOT_FOUND; | 310 | *return_node = ACPI_ENTRY_NOT_FOUND; |
| 309 | acpi_gbl_ns_lookup_count++; | 311 | acpi_gbl_ns_lookup_count++; |
| 310 | 312 | ||
| @@ -547,6 +549,12 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
| 547 | if (flags & ACPI_NS_ERROR_IF_FOUND) { | 549 | if (flags & ACPI_NS_ERROR_IF_FOUND) { |
| 548 | local_flags |= ACPI_NS_ERROR_IF_FOUND; | 550 | local_flags |= ACPI_NS_ERROR_IF_FOUND; |
| 549 | } | 551 | } |
| 552 | |||
| 553 | /* Set override flag according to caller */ | ||
| 554 | |||
| 555 | if (flags & ACPI_NS_OVERRIDE_IF_FOUND) { | ||
| 556 | local_flags |= ACPI_NS_OVERRIDE_IF_FOUND; | ||
| 557 | } | ||
| 550 | } | 558 | } |
| 551 | 559 | ||
| 552 | /* Extract one ACPI name from the front of the pathname */ | 560 | /* Extract one ACPI name from the front of the pathname */ |
