Module Name:    src
Committed By:   martin
Date:           Thu Feb 14 12:44:16 UTC 2013

Modified Files:
        src/sys/arch/sparc/sparc: autoconf.c

Log Message:
Fix thinko in previous (and misleading comment): stop ignoring table
entries for to be ignored devices.


To generate a diff of this commit:
cvs rdiff -u -r1.249 -r1.250 src/sys/arch/sparc/sparc/autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/sparc/autoconf.c
diff -u src/sys/arch/sparc/sparc/autoconf.c:1.249 src/sys/arch/sparc/sparc/autoconf.c:1.250
--- src/sys/arch/sparc/sparc/autoconf.c:1.249	Thu Feb 14 12:14:13 2013
+++ src/sys/arch/sparc/sparc/autoconf.c	Thu Feb 14 12:44:16 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.249 2013/02/14 12:14:13 martin Exp $ */
+/*	$NetBSD: autoconf.c,v 1.250 2013/02/14 12:44:16 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.249 2013/02/14 12:14:13 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.250 2013/02/14 12:44:16 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1340,12 +1340,14 @@ extern struct sparc_bus_space_tag mainbu
 		cp = prom_getpropstringA(node, "name", namebuf, sizeof namebuf);
 		DPRINTF(ACDB_PROBE, (" name %s\n", namebuf));
 		for (ssp = openboot_special; (sp = ssp->dev) != NULL; ssp++) {
-			if (!(ssp->flags & BS_EARLY)) continue;
+			if (!(ssp->flags & (BS_EARLY|BS_IGNORE))) continue;
 			if (strcmp(cp, sp) == 0)
 				break;
 		}
 		if (sp != NULL)
-			continue; /* an "early" device already configured */
+			continue;
+			/* an "early" device already configured, or an
+			   ignored device */
 
 		memset(&ma, 0, sizeof ma);
 		ma.ma_bustag = &mainbus_space_tag;

Reply via email to