mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
c9bdd8057d
commit
0a1fbf2db0
2 changed files with 5 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
|
|||
info->name = node->name.integer;
|
||||
info->valid = 0;
|
||||
|
||||
if (node->type == ACPI_TYPE_METHOD) {
|
||||
info->param_count = node->object->method.param_count;
|
||||
}
|
||||
|
||||
status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Reference in a new issue