diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-09-26 19:35:50 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-09-26 19:35:50 +0000 |
| commit | 3f99f14bf17021daa4b7abc71b1e12c82da27db6 (patch) | |
| tree | b043c185e95f23eb60516b39361aaf3ed74ca525 /sys/dev/ofw | |
| parent | a7e41a41f9d3bb1235c247a62bc3f0acb89c9597 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_console.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index b835dd13f038..920733a61d91 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -92,15 +92,16 @@ cn_drvinit(void *unused) { phandle_t options; char output[32]; + dev_t dev; - if (ofw_consdev.cn_dev != NULL) { + if (ofw_consdev.cn_pri != CN_DEAD) { if ((options = OF_finddevice("/options")) == -1 || OF_getprop(options, "output-device", output, sizeof(output)) == -1) return; - make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s", + dev = make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s", output); - make_dev_alias(ofw_consdev.cn_dev, "ofwcons"); + make_dev_alias(dev, "ofwcons"); } } @@ -275,7 +276,6 @@ ofw_cons_probe(struct consdev *cp) return; } - cp->cn_dev = NULL; cp->cn_pri = CN_INTERNAL; } |
