]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/acpi/video.c
Merge branch 'video-error-case' into release
[net-next-2.6.git] / drivers / acpi / video.c
index 3f685db1a76df61754524484ed530694342413da..72e76b4b6538f2da73ca4b9060e3cf12ce1808fc 100644 (file)
@@ -1981,6 +1981,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;