diff options
author | phk <phk@FreeBSD.org> | 2005-02-27 21:52:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-27 21:52:42 +0000 |
commit | 95c6b2d151424300d9bab5ad0122d38f534ff0ae (patch) | |
tree | 1d50b1a4bd0b88055868d46e01bf09c781d30dd2 /sys/kern/tty_cons.c | |
parent | e1a6880e8a66da7f8209922d12b2e31db0aa211e (diff) | |
download | FreeBSD-src-95c6b2d151424300d9bab5ad0122d38f534ff0ae.zip FreeBSD-src-95c6b2d151424300d9bab5ad0122d38f534ff0ae.tar.gz |
Use dynamic major number allocation for /dev/console, there is no
longer any benefit from hard wiring it.
Remove special hack used to wire major to zero despite zero having a
different magic meaning as well.
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 5fae927..abd79ba 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -69,11 +69,6 @@ static d_ioctl_t cnioctl; static d_poll_t cnpoll; static d_kqfilter_t cnkqfilter; -/* - * XXX: We really want major #0, but zero here means - * XXX: allocate a major number automatically. - * XXX: kern_conf.c knows what to do when it sees 256. - */ static struct cdevsw cn_cdevsw = { .d_version = D_VERSION, .d_open = cnopen, @@ -83,7 +78,6 @@ static struct cdevsw cn_cdevsw = { .d_ioctl = cnioctl, .d_poll = cnpoll, .d_name = "console", - .d_maj = 256, .d_flags = D_TTY | D_NEEDGIANT, .d_kqfilter = cnkqfilter, }; |