diff options
author | Bob Moore <robert.moore@intel.com> | 2008-07-03 22:53:58 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-22 23:14:38 -0400 |
commit | 0a1fbf2db0d275f0f8160bb9c3e51c4df5bafdc2 (patch) | |
tree | 030acc9af2f3e0ee2a7285f85ef7dc8f60b8174b /drivers/acpi/namespace | |
parent | c9bdd8057d706a972d804d2d8614a283641a5660 (diff) |
ACPICA: Return method arg count from acpi_get_object_info
Also update the debugger so that the correct number of arguments is
passed to the method. Prevents a warning message from the debugger.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/namespace')
-rw-r--r-- | drivers/acpi/namespace/nsxfname.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c index 3cb910ded44a..5efa4e7ddb0b 100644 --- a/drivers/acpi/namespace/nsxfname.c +++ b/drivers/acpi/namespace/nsxfname.c | |||
@@ -265,6 +265,10 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer) | |||
265 | info->name = node->name.integer; | 265 | info->name = node->name.integer; |
266 | info->valid = 0; | 266 | info->valid = 0; |
267 | 267 | ||
268 | if (node->type == ACPI_TYPE_METHOD) { | ||
269 | info->param_count = node->object->method.param_count; | ||
270 | } | ||
271 | |||
268 | status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 272 | status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
269 | if (ACPI_FAILURE(status)) { | 273 | if (ACPI_FAILURE(status)) { |
270 | goto cleanup; | 274 | goto cleanup; |