summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-09-28 06:51:47 +0000
committerjake <jake@FreeBSD.org>2003-09-28 06:51:47 +0000
commit5edf19cab6586355c7fa1f74604731e5eab7ad02 (patch)
treebfa5c60a414f10e1bd02021dec3f4163aba89f9a /sys/dev/ofw
parentf245587e6d5928d2ccd12c3ef36695723a9a7df1 (diff)
downloadFreeBSD-src-5edf19cab6586355c7fa1f74604731e5eab7ad02.zip
FreeBSD-src-5edf19cab6586355c7fa1f74604731e5eab7ad02.tar.gz
Only create the ofwcons device nodes if it has been initialized, not
just probed.
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_console.c3
1 files changed, 2 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud