Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev when looking for a device's node we wan...



details:   https://anonhg.NetBSD.org/src/rev/e200a957990e
branches:  trunk
changeset: 764917:e200a957990e
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed May 11 22:26:46 2011 +0000

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

diffstat:

 sys/arch/sparc64/dev/pci_machdep.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8378df9b8a1e -r e200a957990e sys/arch/sparc64/dev/pci_machdep.c
--- a/sys/arch/sparc64/dev/pci_machdep.c        Wed May 11 22:21:59 2011 +0000
+++ b/sys/arch/sparc64/dev/pci_machdep.c        Wed May 11 22:26:46 2011 +0000
@@ -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. 



Home | Main Index | Thread Index | Old Index