Messages in this thread Patch in this message | | | From | davej@redhat ... | Subject | logic error in radeonfb. | Date | Fri, 23 Jan 2004 06:35:25 +0000 |
| |
Looks like another instance of a ! in the wrong place.
Dave
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/video/radeonfb.c linux-2.5/drivers/video/radeonfb.c --- bk-linus/drivers/video/radeonfb.c 2004-01-21 15:58:42.000000000 +0000 +++ linux-2.5/drivers/video/radeonfb.c 2004-01-21 17:48:54.000000000 +0000 @@ -2319,7 +2319,7 @@ static int radeon_set_backlight_enable(i 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |