Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix the previous. there's no "vc" variable, nor...



details:   https://anonhg.NetBSD.org/src/rev/b08dd719155b
branches:  trunk
changeset: 761350:b08dd719155b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jan 25 07:17:07 2011 +0000

description:
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.

diffstat:

 sys/dev/pci/tga.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a58651557585 -r b08dd719155b sys/dev/pci/tga.c
--- a/sys/dev/pci/tga.c Tue Jan 25 04:45:28 2011 +0000
+++ b/sys/dev/pci/tga.c Tue Jan 25 07:17:07 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index