From 45802bf39881ca072256d5076aee7a6d41b37bf9 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 8 Mar 2008 16:34:33 +0000 Subject: Check "status" property. --- sys/arch/sparc64/dev/pci_machdep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64') 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)); -- cgit v1.2.3