patch-2.4.8 linux/drivers/video/cgfourteenfb.c

Next file: linux/fs/autofs/autofs_i.h
Previous file: linux/drivers/video/atyfb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.7/linux/drivers/video/cgfourteenfb.c linux/drivers/video/cgfourteenfb.c
@@ -1,4 +1,4 @@
-/* $Id: cgfourteenfb.c,v 1.9 2001/02/13 01:17:14 davem Exp $
+/* $Id: cgfourteenfb.c,v 1.10 2001/07/27 09:44:00 davem Exp $
  * cgfourteenfb.c: CGfourteen frame buffer driver
  *
  * Copyright (C) 1996,1998 Jakub Jelinek (jj@ultra.linux.cz)
@@ -242,6 +242,11 @@
 		u8 tmp = sbus_readb(&cur->ccr);
 
 		tmp |= CG14_CCR_ENABLE;
+		sbus_writeb(tmp, &cur->ccr);
+	} else {
+		u8 tmp = sbus_readb(&cur->ccr);
+
+		tmp &= ~CG14_CCR_ENABLE;
 		sbus_writeb(tmp, &cur->ccr);
 	}
 	sbus_writew(((c->cpos.fbx - c->chot.fbx) & 0xfff), &cur->cursx);

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