diff options
author | jake <jake@FreeBSD.org> | 2003-09-28 06:51:47 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-09-28 06:51:47 +0000 |
commit | 5edf19cab6586355c7fa1f74604731e5eab7ad02 (patch) | |
tree | bfa5c60a414f10e1bd02021dec3f4163aba89f9a /sys | |
parent | f245587e6d5928d2ccd12c3ef36695723a9a7df1 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/ofw/ofw_console.c | 3 |
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) |