diff options
-rw-r--r-- | sys/dev/led/led.c | 4 | ||||
-rw-r--r-- | sys/kern/tty_cons.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index b2e44e9..77c68ef 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -211,8 +211,8 @@ led_write(dev_t dev, struct uio *uio, int ioflag) } static struct cdevsw led_cdevsw = { - .d_write = led_write, - .d_name = "LED", + .d_write = led_write, + .d_name = "LED", }; dev_t diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 835c35a..272cc4a 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -72,6 +72,11 @@ 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_open = cnopen, .d_close = cnclose, @@ -81,11 +86,6 @@ static struct cdevsw cn_cdevsw = { .d_poll = cnpoll, .d_name = "console", .d_maj = 256, - /* - * 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. - */ .d_flags = D_TTY, .d_kqfilter = cnkqfilter, }; |