diff options
-rw-r--r-- | drivers/acpi/namespace/nsxfname.c | 4 | ||||
-rw-r--r-- | include/acpi/actypes.h | 1 |
2 files changed, 5 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; |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 73d6b1cb07f3..6bd08e83f31c 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -859,6 +859,7 @@ struct acpi_obj_info_header { | |||
859 | struct acpi_device_info { | 859 | struct acpi_device_info { |
860 | ACPI_COMMON_OBJ_INFO; | 860 | ACPI_COMMON_OBJ_INFO; |
861 | 861 | ||
862 | u32 param_count; /* If a method, required parameter count */ | ||
862 | u32 valid; /* Indicates which fields below are valid */ | 863 | u32 valid; /* Indicates which fields below are valid */ |
863 | u32 current_status; /* _STA value */ | 864 | u32 current_status; /* _STA value */ |
864 | acpi_integer address; /* _ADR value if any */ | 865 | acpi_integer address; /* _ADR value if any */ |