summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index 3ec74119f1..21f0b2318e 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -122,6 +122,11 @@
/* Find value closest to BCLV in BRIG (which must be ordered) */
Method (XBQC, 0, NotSerialized)
{
+ /* Prevent DivideByZero if backlight control isn't enabled */
+ If (BCLM == 0)
+ {
+ Return (Zero)
+ }
/* Local0: current percentage */
Store (DRCL (Multiply (BCLV, 100), BCLM), Local0)