diff options
author | phk <phk@FreeBSD.org> | 2005-02-27 22:02:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-27 22:02:03 +0000 |
commit | 76be0de47712ce84b1bd299a8fcb3e849f250545 (patch) | |
tree | 7f248262b8a0f79e8a5a6df2a56e42c033902f8c /sys/kern/subr_log.c | |
parent | 906adb895a36fcecd1bf92bc3d2c6861ec2f2d1d (diff) | |
download | FreeBSD-src-76be0de47712ce84b1bd299a8fcb3e849f250545.zip FreeBSD-src-76be0de47712ce84b1bd299a8fcb3e849f250545.tar.gz |
Use dynamic major number allocation.
Diffstat (limited to 'sys/kern/subr_log.c')
-rw-r--r-- | sys/kern/subr_log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index c3b5764..cd9a70a 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -63,7 +63,6 @@ static d_poll_t logpoll; static void logtimeout(void *arg); -#define CDEV_MAJOR 7 static struct cdevsw log_cdevsw = { .d_version = D_VERSION, .d_flags = D_NEEDGIANT, @@ -73,7 +72,6 @@ static struct cdevsw log_cdevsw = { .d_ioctl = logioctl, .d_poll = logpoll, .d_name = "log", - .d_maj = CDEV_MAJOR, }; static struct logsoftc { @@ -252,4 +250,4 @@ log_drvinit(void *unused) make_dev(&log_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "klog"); } -SYSINIT(logdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,log_drvinit,NULL) +SYSINIT(logdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,log_drvinit,NULL) |