]> git.hungrycats.org Git - linux/commitdiff
[PATCH] logic error in radeonfb.
authorDave Jones <davej@redhat.com>
Fri, 23 Jan 2004 00:14:09 +0000 (16:14 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 23 Jan 2004 00:14:09 +0000 (16:14 -0800)
Looks like another instance of a ! in the wrong place.

drivers/video/radeonfb.c

index a19b42179df9062c6b73c980585fb8be67880a9a..cb7b2b74ded30ff90b67813ad8d73756de134e9c 100644 (file)
@@ -2319,7 +2319,7 @@ static int radeon_set_backlight_enable(int on, int level, void *data)
        lvds_gen_cntl |= (LVDS_BL_MOD_EN | LVDS_BLON);
        if (on && (level > BACKLIGHT_OFF)) {
                lvds_gen_cntl |= LVDS_DIGON;
-               if (!lvds_gen_cntl & LVDS_ON) {
+               if (!(lvds_gen_cntl & LVDS_ON)) {
                        lvds_gen_cntl &= ~LVDS_BLON;
                        OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl);
                        (void)INREG(LVDS_GEN_CNTL);