aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nspredef.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r--drivers/acpi/acpica/nspredef.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index 1782c3d85ba2..c6297f57fea8 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -215,6 +215,8 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
215 data->node_flags = node->flags; 215 data->node_flags = node->flags;
216 data->pathname = pathname; 216 data->pathname = pathname;
217 217
218 /* TBD: For variable-length Packages, remove NULL elements here */
219
218 /* 220 /*
219 * Check that the type of the return object is what is expected for 221 * Check that the type of the return object is what is expected for
220 * this predefined name 222 * this predefined name
@@ -223,10 +225,11 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
223 predefined->info.expected_btypes, 225 predefined->info.expected_btypes,
224 ACPI_NOT_PACKAGE_ELEMENT); 226 ACPI_NOT_PACKAGE_ELEMENT);
225 if (ACPI_SUCCESS(status)) { 227 if (ACPI_SUCCESS(status)) {
226 228 /*
227 /* For returned Package objects, check the type of all sub-objects */ 229 * For returned Package objects, check the type of all sub-objects.
228 230 * Note: Package may have been created by call above.
229 if (return_object->common.type == ACPI_TYPE_PACKAGE) { 231 */
232 if ((*return_object_ptr)->common.type == ACPI_TYPE_PACKAGE) {
230 status = acpi_ns_check_package(data, return_object_ptr); 233 status = acpi_ns_check_package(data, return_object_ptr);
231 } 234 }
232 } 235 }