Module Name:    src
Committed By:   tsutsui
Date:           Sat May 15 06:38:34 UTC 2010

Modified Files:
        src/sys/dev/pci: tga.c

Log Message:
Set RI_NO_AUTO in rip->ri_flg if tga_init() is invoked from cnattach.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/pci/tga.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/tga.c
diff -u src/sys/dev/pci/tga.c:1.77 src/sys/dev/pci/tga.c:1.78
--- src/sys/dev/pci/tga.c:1.77	Sat May 16 14:27:30 2009
+++ src/sys/dev/pci/tga.c	Sat May 15 06:38:34 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.77 2009/05/16 14:27:30 tsutsui Exp $ */
+/* $NetBSD: tga.c,v 1.78 2010/05/15 06:38:34 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.77 2009/05/16 14:27:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.78 2010/05/15 06:38:34 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -331,6 +331,8 @@
 	rip->ri_height = dc->dc_ht;
 	rip->ri_stride = dc->dc_rowbytes;
 	rip->ri_hw = dc;
+	if (dc == &tga_console_dc)
+		rip->ri_flg |= RI_NO_AUTO;
 
 	if (tgac->tgac_phys_depth == 32) {
 		rip->ri_rnum = 8;

Reply via email to