Module Name:    src
Committed By:   mrg
Date:           Tue Jan 25 07:17:08 UTC 2011

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

Log Message:
fix the previous.  there's no "vc" variable, nor does the local "dc"
have a "softc" member.  use sc->sc_dev instead.

compile tested only, but that's better than the previous revision.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 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.81 src/sys/dev/pci/tga.c:1.82
--- src/sys/dev/pci/tga.c:1.81	Sat Jan 22 15:14:28 2011
+++ src/sys/dev/pci/tga.c	Tue Jan 25 07:17:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.81 2011/01/22 15:14:28 cegger Exp $ */
+/* $NetBSD: tga.c,v 1.82 2011/01/25 07:17:07 mrg Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.81 2011/01/22 15:14:28 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.82 2011/01/25 07:17:07 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -598,7 +598,7 @@
 		    cmd, data, flag, l);
 
 	case WSDISPLAYIO_GET_BUSID:
-		return wsdisplayio_busid_pci(vc->softc->sc_dev, dc->dc_pc,
+		return wsdisplayio_busid_pci(sc->sc_dev, dc->dc_pc,
 		    dc->dc_pcitag, data);
 	}
 	return EPASSTHROUGH;

Reply via email to