From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Murzov Subject: [PATCH] ACPI video: Ignore AE_AML_PACKAGE_LIMIT errors after _DOD evaluation. Date: Wed, 10 Oct 2012 02:19:06 +0400 Message-ID: <1349821146-19155-1-git-send-email-e-mail@date.by> Return-path: Received: from forward9.mail.yandex.net ([77.88.61.48]:33721 "EHLO forward9.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184Ab2JIW2M (ORCPT ); Tue, 9 Oct 2012 18:28:12 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: Zhang Rui , Len Brown , Sergey V , linux-kernel@vger.kernel.org, Igor Murzov This should fix brightness controls on some laptops. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861 Signed-off-by: Igor Murzov --- drivers/acpi/video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1e0a9e1..01bb58d 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1349,8 +1349,12 @@ acpi_video_bus_get_devices(struct acpi_video_bus *video, struct acpi_device *dev; status = acpi_video_device_enumerate(video); - if (status) - return status; + if (status) { + if (status == AE_AML_PACKAGE_LIMIT) + status = 0; /* Ignore this error */ + else + return status; + } list_for_each_entry(dev, &device->children, node) { -- 1.7.12