summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nspredef.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-03-21 09:51:39 +0800
committerLen Brown <len.brown@intel.com>2012-03-30 01:45:13 -0400
commit6a99b1c94d053b3420eaa4a4bc8b2883dd90a2f9 (patch)
tree6352de44a9cf8d6aff4b5b6674c33a96403c434e /drivers/acpi/acpica/nspredef.c
parenta2ef5c4fd44ce3922435139393b89f2cce47f576 (diff)
downloadlinux-stable-6a99b1c94d053b3420eaa4a4bc8b2883dd90a2f9.tar.gz
linux-stable-6a99b1c94d053b3420eaa4a4bc8b2883dd90a2f9.tar.bz2
linux-stable-6a99b1c94d053b3420eaa4a4bc8b2883dd90a2f9.zip
ACPICA: Object repair code: Support to add Package wrappers
Repair a common problem with objects that are defined to return a variable-length Package of sub-objects. If there is only one sub-object, some BIOS code mistakenly simply declares the single object instead of a Package with one sub-object. This function attempts to repair this error by wrapping a Package object around the original object, creating the correct and expected Package with one sub-object. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index bbe46a447d34..23ce09686418 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -638,8 +638,8 @@ acpi_ns_check_package(struct acpi_predefined_data *data,
/* Create the new outer package and populate it */
status =
- acpi_ns_repair_package_list(data,
- return_object_ptr);
+ acpi_ns_wrap_with_package(data, *elements,
+ return_object_ptr);
if (ACPI_FAILURE(status)) {
return (status);
}