summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2008-03-08 16:33:41 +0000
committerkettenis <kettenis@openbsd.org>2008-03-08 16:33:41 +0000
commitdd5b57d8a51f8cbe79bc0dc60dca3e43b7f07529 (patch)
treeb3558b8ee20ffe91da36f06cdc494cde97d24e4e /sys
parentIntroduce a function to check the "status" property of an OFW node, and use it (diff)
downloadwireguard-openbsd-dd5b57d8a51f8cbe79bc0dc60dca3e43b7f07529.tar.xz
wireguard-openbsd-dd5b57d8a51f8cbe79bc0dc60dca3e43b7f07529.zip
Check "status" property. Since the PROM marks the floppy controller device
as "disabled" if no floppy drive is connected, this will get rid of the "unconfigured" message for the floppy controller on machines that don't have a floppy drive.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/ebus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c
index 00b4af78a0d..b479de0b6c7 100644
--- a/sys/arch/sparc64/dev/ebus.c
+++ b/sys/arch/sparc64/dev/ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ebus.c,v 1.20 2008/02/17 22:01:27 kettenis Exp $ */
+/* $OpenBSD: ebus.c,v 1.21 2008/03/08 16:33:41 kettenis Exp $ */
/* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */
/*
@@ -201,6 +201,9 @@ ebus_attach(struct device *parent, struct device *self, void *aux)
*/
DPRINTF(EDB_CHILD, ("ebus node %08x, searching children...\n", node));
for (node = firstchild(node); node; node = nextsibling(node)) {
+ if (!checkstatus(node))
+ continue;
+
if (ebus_setup_attach_args(sc, node, &eba) != 0) {
DPRINTF(EDB_CHILD,
("ebus_attach: %s: incomplete\n",