summaryrefslogtreecommitdiff
path: root/src/r128_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/r128_driver.c')
-rw-r--r--src/r128_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 8167d00..fb9dd6d 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -3651,7 +3651,7 @@ static int r128_set_backlight_enable(ScrnInfoPtr pScrn, int on)
lvds_gen_cntl |= (/*R128_LVDS_BL_MOD_EN |*/ R128_LVDS_BLON);
if (on) {
lvds_gen_cntl |= R128_LVDS_DIGON;
- if (!lvds_gen_cntl & R128_LVDS_ON) {
+ if (!(lvds_gen_cntl & R128_LVDS_ON)) {
lvds_gen_cntl &= ~R128_LVDS_BLON;
OUTREG(R128_LVDS_GEN_CNTL, lvds_gen_cntl);
(void)INREG(R128_LVDS_GEN_CNTL);