Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/voyager wsdisplayio_busid_pci() needs out parent...



details:   https://anonhg.NetBSD.org/src/rev/fbc167f8fc79
branches:  trunk
changeset: 769297:fbc167f8fc79
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Sep 06 03:31:37 2011 +0000

description:
wsdisplayio_busid_pci() needs out parent since we don't attach directly
to a PCI bus anymore

diffstat:

 sys/dev/pci/voyager/voyagerfb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f73a96aadb56 -r fbc167f8fc79 sys/dev/pci/voyager/voyagerfb.c
--- a/sys/dev/pci/voyager/voyagerfb.c   Tue Sep 06 01:51:44 2011 +0000
+++ b/sys/dev/pci/voyager/voyagerfb.c   Tue Sep 06 03:31:37 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: voyagerfb.c,v 1.1 2011/08/31 16:47:31 macallan Exp $   */
+/*     $NetBSD: voyagerfb.c,v 1.2 2011/09/06 03:31:37 macallan Exp $   */
 
 /*
  * Copyright (c) 2009 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.1 2011/08/31 16:47:31 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.2 2011/09/06 03:31:37 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -311,8 +311,8 @@
                    cmd, data, flag, l);
 
        case WSDISPLAYIO_GET_BUSID:
-               return wsdisplayio_busid_pci(sc->sc_dev, sc->sc_pc,
-                   sc->sc_pcitag, data);
+               return wsdisplayio_busid_pci(device_parent(sc->sc_dev),
+                   sc->sc_pc, sc->sc_pcitag, data);
 
        case WSDISPLAYIO_GINFO:
                if (ms == NULL)



Home | Main Index | Thread Index | Old Index