aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofw_console.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-09-28 06:51:47 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-09-28 06:51:47 +0000
commit278667afab493635e85767e8f1d8b5483586e172 (patch)
treebfa5c60a414f10e1bd02021dec3f4163aba89f9a /sys/dev/ofw/ofw_console.c
parentf8191f94aacee4f7629b897c8cbc6dfdd49b4308 (diff)
downloadsrc-278667afab493635e85767e8f1d8b5483586e172.tar.gz
src-278667afab493635e85767e8f1d8b5483586e172.zip
Only create the ofwcons device nodes if it has been initialized, not
just probed.
Notes
Notes: svn path=/head/; revision=120544
Diffstat (limited to 'sys/dev/ofw/ofw_console.c')
-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 3a85da35eb7d..a0e29ea8d92d 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)