diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-12-30 19:05:58 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:20 -0500 |
commit | 0fdce47677be8d86408d2beef6fda3dc4c7edf56 (patch) | |
tree | 47b32bd36408b116a41cc43b23bf839adf8d0e5d | |
parent | 99c93f55a5eeccdc902da0396a8f9b4ec8a55c63 (diff) |
ACPICA: Resource Manager: Add a pointer cast for a namespace node.
Add a missing cast for a namespace node pointer passed in from
an external interface. Reported Rafael Wysocki.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/acpica/rsutils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/rsutils.c b/drivers/acpi/acpica/rsutils.c index 5adae5a036aa..41b8103911fc 100644 --- a/drivers/acpi/acpica/rsutils.c +++ b/drivers/acpi/acpica/rsutils.c | |||
@@ -677,7 +677,9 @@ acpi_rs_get_method_data(acpi_handle handle, | |||
677 | /* Execute the method, no parameters */ | 677 | /* Execute the method, no parameters */ |
678 | 678 | ||
679 | status = | 679 | status = |
680 | acpi_ut_evaluate_object(handle, path, ACPI_BTYPE_BUFFER, &obj_desc); | 680 | acpi_ut_evaluate_object(ACPI_CAST_PTR |
681 | (struct acpi_namespace_node, handle), path, | ||
682 | ACPI_BTYPE_BUFFER, &obj_desc); | ||
681 | if (ACPI_FAILURE(status)) { | 683 | if (ACPI_FAILURE(status)) { |
682 | return_ACPI_STATUS(status); | 684 | return_ACPI_STATUS(status); |
683 | } | 685 | } |