summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/nspredef.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-06-08 05:01:01 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-20 03:31:57 +0400
commitaa6329c44bccedbd8b17094c1c1aee1d9a9de461 (patch)
tree018174f92b7b5ce9823382349786e9f71aed5540 /drivers/acpi/acpica/nspredef.c
parent64f3af5fd1405b6856ef6eef555e72d7ea67ee14 (diff)
downloadlinux-aa6329c44bccedbd8b17094c1c1aee1d9a9de461.tar.xz
ACPICA: Move _PRT repair into the standard complex repair module
Moved this longstanding repair to the relatively new predefined name repair module. ACPICA BZ 783. Lv Zheng. No functional change. This change simply moves the repair code from where it was originally implemented to the (more recent) repair module where it now belongs. References: https://bugs.acpica.org/show_bug.cgi?id=783 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r--drivers/acpi/acpica/nspredef.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index 600268d33aa8..8d59ac2399e0 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -158,7 +158,12 @@ acpi_ns_check_return_value(struct acpi_namespace_node *node,
info->parent_package = *return_object_ptr;
status = acpi_ns_check_package(info, return_object_ptr);
if (ACPI_FAILURE(status)) {
- goto exit;
+
+ /* We might be able to fix an operand type error (_PRT) */
+
+ if (status != AE_AML_OPERAND_TYPE) {
+ goto exit;
+ }
}
}