aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-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)