patch-2.1.97 linux/drivers/sbus/char/cgsix.c

Next file: linux/drivers/sbus/char/cgthree.c
Previous file: linux/drivers/sbus/char/cgfourteen.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/drivers/sbus/char/cgsix.c linux/drivers/sbus/char/cgsix.c
@@ -1,4 +1,4 @@
-/* $Id: cgsix.c,v 1.37 1997/08/22 15:55:20 jj Exp $
+/* $Id: cgsix.c,v 1.39 1998/03/10 20:18:25 jj Exp $
  * cgsix.c: cgsix frame buffer driver
  *
  * Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
@@ -326,7 +326,8 @@
 		page += map_size;
 	}
 
-	vma->vm_dentry = dget(file->f_dentry);
+	vma->vm_file = file;
+	file->f_count++;
         return 0;
 }
 
@@ -395,11 +396,14 @@
 cg6_blank (fbinfo_t *fb)
 {
 	fb->info.cg6.thc->thc_misc &= ~CG6_THC_MISC_VIDEO;
+	/* This should put us in power-save */
+	fb->info.cg6.thc->thc_misc &= ~CG6_THC_MISC_SYNC_ENAB;
 }
 
 static void
 cg6_unblank (fbinfo_t *fb)
 {
+	fb->info.cg6.thc->thc_misc |= CG6_THC_MISC_SYNC_ENAB;
 	fb->info.cg6.thc->thc_misc |= CG6_THC_MISC_VIDEO;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov