summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2001-10-22 14:36:55 +0000
committerthorpej <thorpej@NetBSD.org>2001-10-22 14:36:55 +0000
commit2bc9b4e2be242ef9d5ed4eac5bfcc92cf123143b (patch)
tree14b65c3651e828e86ced98bfb6cdafa0732745af /sys/dev/ofw
parentaddd2cfb92f8dad2a73619e7572194e012f0fc3e (diff)
Remove hack to skip OFW nodes which don't correspond to devices. These
are generally only at the toplevel of the OFW tree, and are best handled by the code that configures the toplevel (which often needs special handling anyway).
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofbus.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/ofw/ofbus.c b/sys/dev/ofw/ofbus.c
index f709f641e9a..7dd6d0c42bc 100644
--- a/sys/dev/ofw/ofbus.c
+++ b/sys/dev/ofw/ofbus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ofbus.c,v 1.10 1998/02/24 05:44:39 mycroft Exp $ */
+/* $NetBSD: ofbus.c,v 1.11 2001/10/22 14:36:55 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -102,15 +102,8 @@ ofbus_attach(parent, dev, aux)
units = 2;
}
- for (child = OF_child(oba->oba_phandle); child;
- child = OF_peer(child)) {
- /*
- * This is a hack to skip all the entries in the tree
- * that aren't devices (packages, openfirmware etc.).
- */
- if (OF_getprop(child, "device_type", name, sizeof name) < 0 &&
- OF_getprop(child, "compatible", name, sizeof name) < 0)
- continue;
+ for (child = OF_child(oba->oba_phandle); child != 0;
+ child = OF_peer(child)) {
oba2.oba_busname = "ofw";
oba2.oba_phandle = child;
for (oba2.oba_unit = 0; oba2.oba_unit < units; oba2.oba_unit++)