diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-08 16:34:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-08 16:34:33 +0000 |
commit | 45802bf39881ca072256d5076aee7a6d41b37bf9 (patch) | |
tree | 9402fa83587556c2bdd5a7ebc74b89bf56d26439 /sys/arch/sparc64/dev | |
parent | e5e8755ac2589d53ecbb9e21aae919a35cb5dbba (diff) |
Check "status" property.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/pci_machdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index ae0a25c1768..a4d5f2696e5 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.34 2008/01/19 11:13:43 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.35 2008/03/08 16:34:32 kettenis Exp $ */ /* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */ /* @@ -254,6 +254,9 @@ sparc64_pci_enumerate_bus(struct pci_softc *sc, for (node = OF_child(node); node != 0 && node != -1; node = OF_peer(node)) { + if (!checkstatus(node)) + continue; + name[0] = name[29] = 0; OF_getprop(node, "name", name, sizeof(name)); |