From 5edf19cab6586355c7fa1f74604731e5eab7ad02 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 28 Sep 2003 06:51:47 +0000 Subject: Only create the ofwcons device nodes if it has been initialized, not just probed. --- sys/dev/ofw/ofw_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ofw') diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index 3a85da3..a0e29ea 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -94,7 +94,8 @@ cn_drvinit(void *unused) char output[32]; dev_t dev; - if (ofw_consdev.cn_pri != CN_DEAD) { + if (ofw_consdev.cn_pri != CN_DEAD && + ofw_consdev.cn_name[0] != '\0') { if ((options = OF_finddevice("/options")) == -1 || OF_getprop(options, "output-device", output, sizeof(output)) == -1) -- cgit v1.1