From: Zhang Rui Date: Mon, 13 Jul 2009 02:33:24 +0000 (+0800) Subject: ACPI video: no warning message if "acpi_backlight=vendor" is used X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28c32e99bdf5ab838e7179c1aaca5a35a07f2a2b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ACPI video: no warning message if "acpi_backlight=vendor" is used AML code always sends notifications to ACPI video device, even if we disable the ACPI backlight control by using boot option "acpi_backlight=vendor". In this case we should not print any warning message. http://bugzilla.kernel.org/show_bug.cgi?id=13671#c14 Sigend-off-by: Zhang Rui Signed-off-by: Len Brown --- diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 05dff631591c..3b063a6ac52e 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1979,6 +1979,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event) unsigned long long level_current, level_next; int result = -EINVAL; + /* no warning message if acpi_backlight=vendor is used */ + if (!acpi_video_backlight_support()) + return 0; + if (!device->brightness) goto out;