Module Name:    src
Committed By:   macallan
Date:           Wed May 11 22:26:46 UTC 2011

Modified Files:
        src/sys/arch/sparc64/dev: pci_machdep.c

Log Message:
when looking for a device's node we want to start with the child nodes of the
root bus, not its peers


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/sparc64/dev/pci_machdep.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/arch/sparc64/dev/pci_machdep.c
diff -u src/sys/arch/sparc64/dev/pci_machdep.c:1.71 src/sys/arch/sparc64/dev/pci_machdep.c:1.72
--- src/sys/arch/sparc64/dev/pci_machdep.c:1.71	Mon Apr  4 20:37:54 2011
+++ src/sys/arch/sparc64/dev/pci_machdep.c	Wed May 11 22:26:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.c,v 1.71 2011/04/04 20:37:54 dyoung Exp $	*/
+/*	$NetBSD: pci_machdep.c,v 1.72 2011/05/11 22:26:46 macallan Exp $	*/
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.71 2011/04/04 20:37:54 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.72 2011/05/11 22:26:46 macallan Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -173,6 +173,7 @@
 #endif
 	}
 #endif	
+	node = prom_firstchild(node);
 	/*
 	 * Now traverse all peers until we find the node or we find
 	 * the right bridge. 

Reply via email to