diff options
Diffstat (limited to 'drivers/acpi/acpica/nsxfname.c')
-rw-r--r-- | drivers/acpi/acpica/nsxfname.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/nsxfname.c b/drivers/acpi/acpica/nsxfname.c index ddc84af6336e..e611dd961b20 100644 --- a/drivers/acpi/acpica/nsxfname.c +++ b/drivers/acpi/acpica/nsxfname.c | |||
@@ -93,7 +93,7 @@ acpi_get_handle(acpi_handle parent, | |||
93 | /* Convert a parent handle to a prefix node */ | 93 | /* Convert a parent handle to a prefix node */ |
94 | 94 | ||
95 | if (parent) { | 95 | if (parent) { |
96 | prefix_node = acpi_ns_map_handle_to_node(parent); | 96 | prefix_node = acpi_ns_validate_handle(parent); |
97 | if (!prefix_node) { | 97 | if (!prefix_node) { |
98 | return (AE_BAD_PARAMETER); | 98 | return (AE_BAD_PARAMETER); |
99 | } | 99 | } |
@@ -114,7 +114,7 @@ acpi_get_handle(acpi_handle parent, | |||
114 | 114 | ||
115 | if (!ACPI_STRCMP(pathname, ACPI_NS_ROOT_PATH)) { | 115 | if (!ACPI_STRCMP(pathname, ACPI_NS_ROOT_PATH)) { |
116 | *ret_handle = | 116 | *ret_handle = |
117 | acpi_ns_convert_entry_to_handle(acpi_gbl_root_node); | 117 | ACPI_CAST_PTR(acpi_handle, acpi_gbl_root_node); |
118 | return (AE_OK); | 118 | return (AE_OK); |
119 | } | 119 | } |
120 | } else if (!prefix_node) { | 120 | } else if (!prefix_node) { |
@@ -129,7 +129,7 @@ acpi_get_handle(acpi_handle parent, | |||
129 | status = | 129 | status = |
130 | acpi_ns_get_node(prefix_node, pathname, ACPI_NS_NO_UPSEARCH, &node); | 130 | acpi_ns_get_node(prefix_node, pathname, ACPI_NS_NO_UPSEARCH, &node); |
131 | if (ACPI_SUCCESS(status)) { | 131 | if (ACPI_SUCCESS(status)) { |
132 | *ret_handle = acpi_ns_convert_entry_to_handle(node); | 132 | *ret_handle = ACPI_CAST_PTR(acpi_handle, node); |
133 | } | 133 | } |
134 | 134 | ||
135 | return (status); | 135 | return (status); |
@@ -186,7 +186,7 @@ acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer) | |||
186 | return (status); | 186 | return (status); |
187 | } | 187 | } |
188 | 188 | ||
189 | node = acpi_ns_map_handle_to_node(handle); | 189 | node = acpi_ns_validate_handle(handle); |
190 | if (!node) { | 190 | if (!node) { |
191 | status = AE_BAD_PARAMETER; | 191 | status = AE_BAD_PARAMETER; |
192 | goto unlock_and_exit; | 192 | goto unlock_and_exit; |
@@ -291,7 +291,7 @@ acpi_get_object_info(acpi_handle handle, | |||
291 | goto cleanup; | 291 | goto cleanup; |
292 | } | 292 | } |
293 | 293 | ||
294 | node = acpi_ns_map_handle_to_node(handle); | 294 | node = acpi_ns_validate_handle(handle); |
295 | if (!node) { | 295 | if (!node) { |
296 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 296 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
297 | return (AE_BAD_PARAMETER); | 297 | return (AE_BAD_PARAMETER); |