patch-2.4.21 linux-2.4.21/drivers/video/aty128fb.c

Next file: linux-2.4.21/drivers/video/clgenfb.c
Previous file: linux-2.4.21/drivers/video/atafb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/video/aty128fb.c linux-2.4.21/drivers/video/aty128fb.c
@@ -2531,7 +2531,7 @@
 	reg |= LVDS_BL_MOD_EN | LVDS_BLON;
 	if (on && level > BACKLIGHT_OFF) {
 		reg |= LVDS_DIGION;
-		if (!reg & LVDS_ON) {
+		if ((reg & LVDS_ON) == 0) {
 			reg &= ~LVDS_BLON;
 			aty_st_le32(LVDS_GEN_CNTL, reg);
 			(void)aty_ld_le32(LVDS_GEN_CNTL);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)