Module Name:    src
Committed By:   macallan
Date:           Tue Sep  6 03:31:37 UTC 2011

Modified Files:
        src/sys/dev/pci/voyager: voyagerfb.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/voyager/voyagerfb.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/voyager/voyagerfb.c
diff -u src/sys/dev/pci/voyager/voyagerfb.c:1.1 src/sys/dev/pci/voyager/voyagerfb.c:1.2
--- src/sys/dev/pci/voyager/voyagerfb.c:1.1	Wed Aug 31 16:47:31 2011
+++ src/sys/dev/pci/voyager/voyagerfb.c	Tue Sep  6 03:31:37 2011
@@ -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)

Reply via email to