From 2bc9b4e2be242ef9d5ed4eac5bfcc92cf123143b Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 22 Oct 2001 14:36:55 +0000 Subject: 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). --- sys/dev/ofw/ofbus.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'sys/dev') 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++) -- cgit