diff options
author | Bob Moore <robert.moore@intel.com> | 2009-12-11 02:18:52 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-15 17:29:36 -0500 |
commit | ea7c5ec148044776d5e134e52a3e1aca8d662dbe (patch) | |
tree | f1f37cf9b22ea9e48c5b90f1842cfef5a9275111 /drivers/acpi/acpica/nspredef.c | |
parent | d97659112044c0c77b93c6199eee7ee884eb3cca (diff) |
ACPICA: Move Package-to-Buffer repair code into common ToBuffer function
Move code specific to _FDE and _GTM into the generic repair code.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r-- | drivers/acpi/acpica/nspredef.c | 11 |
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 | } |