diff options
author | Bob Moore <robert.moore@intel.com> | 2009-12-11 01:57:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-15 17:29:35 -0500 |
commit | f24b664dc44a4ab4df61db2258cea298eeb43a8e (patch) | |
tree | b31ad7e9dd77da75e0358e4359b0cee164426595 /drivers/acpi/acpica/nsxfeval.c | |
parent | 34c39c755347c1ca3d06284bad2273c6a9c3108a (diff) |
ACPICA: Update internal namespace node/handle interfaces
This change deletes the unnecessary acpi_ns_convert_entry_to_handle
interface and renames the acpi_ns_map_handle_to_node interface to
acpi_ns_validate_handle. ACPICA BZ 798.
http://www.acpica.org/bugzilla/show_bug.cgi?id=798
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nsxfeval.c')
-rw-r--r-- | drivers/acpi/acpica/nsxfeval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/nsxfeval.c b/drivers/acpi/acpica/nsxfeval.c index f2bd1da77001..f0c0892bc7e5 100644 --- a/drivers/acpi/acpica/nsxfeval.c +++ b/drivers/acpi/acpica/nsxfeval.c | |||
@@ -190,7 +190,7 @@ acpi_evaluate_object(acpi_handle handle, | |||
190 | 190 | ||
191 | /* Convert and validate the device handle */ | 191 | /* Convert and validate the device handle */ |
192 | 192 | ||
193 | info->prefix_node = acpi_ns_map_handle_to_node(handle); | 193 | info->prefix_node = acpi_ns_validate_handle(handle); |
194 | if (!info->prefix_node) { | 194 | if (!info->prefix_node) { |
195 | status = AE_BAD_PARAMETER; | 195 | status = AE_BAD_PARAMETER; |
196 | goto cleanup; | 196 | goto cleanup; |
@@ -552,7 +552,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, | |||
552 | return (status); | 552 | return (status); |
553 | } | 553 | } |
554 | 554 | ||
555 | node = acpi_ns_map_handle_to_node(obj_handle); | 555 | node = acpi_ns_validate_handle(obj_handle); |
556 | status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 556 | status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
557 | if (ACPI_FAILURE(status)) { | 557 | if (ACPI_FAILURE(status)) { |
558 | return (status); | 558 | return (status); |
@@ -729,7 +729,7 @@ acpi_attach_data(acpi_handle obj_handle, | |||
729 | 729 | ||
730 | /* Convert and validate the handle */ | 730 | /* Convert and validate the handle */ |
731 | 731 | ||
732 | node = acpi_ns_map_handle_to_node(obj_handle); | 732 | node = acpi_ns_validate_handle(obj_handle); |
733 | if (!node) { | 733 | if (!node) { |
734 | status = AE_BAD_PARAMETER; | 734 | status = AE_BAD_PARAMETER; |
735 | goto unlock_and_exit; | 735 | goto unlock_and_exit; |
@@ -775,7 +775,7 @@ acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler) | |||
775 | 775 | ||
776 | /* Convert and validate the handle */ | 776 | /* Convert and validate the handle */ |
777 | 777 | ||
778 | node = acpi_ns_map_handle_to_node(obj_handle); | 778 | node = acpi_ns_validate_handle(obj_handle); |
779 | if (!node) { | 779 | if (!node) { |
780 | status = AE_BAD_PARAMETER; | 780 | status = AE_BAD_PARAMETER; |
781 | goto unlock_and_exit; | 781 | goto unlock_and_exit; |
@@ -822,7 +822,7 @@ acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data) | |||
822 | 822 | ||
823 | /* Convert and validate the handle */ | 823 | /* Convert and validate the handle */ |
824 | 824 | ||
825 | node = acpi_ns_map_handle_to_node(obj_handle); | 825 | node = acpi_ns_validate_handle(obj_handle); |
826 | if (!node) { | 826 | if (!node) { |
827 | status = AE_BAD_PARAMETER; | 827 | status = AE_BAD_PARAMETER; |
828 | goto unlock_and_exit; | 828 | goto unlock_and_exit; |