diff options
author | phk <phk@FreeBSD.org> | 2005-02-27 22:01:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-27 22:01:09 +0000 |
commit | 906adb895a36fcecd1bf92bc3d2c6861ec2f2d1d (patch) | |
tree | 8cb2580f6263100241f156e90e54163d44c91a49 /sys | |
parent | 175f4ada9660bf51a6d2441d07b8ca5f5924d309 (diff) | |
download | FreeBSD-src-906adb895a36fcecd1bf92bc3d2c6861ec2f2d1d.zip FreeBSD-src-906adb895a36fcecd1bf92bc3d2c6861ec2f2d1d.tar.gz |
Use dynamic major number allocation.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/majors | 1 | ||||
-rw-r--r-- | sys/dev/null/null.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/conf/majors b/sys/conf/majors index 7d177e3..c006ba5 100644 --- a/sys/conf/majors +++ b/sys/conf/majors @@ -23,7 +23,6 @@ 4 *geom GEOMetry 5 *pts pseudo tty "tty" half 6 *ptc pseudo tty "master" half -7 *log system log 19 *tw X-10 power interface 22 *fd (/dev/stdin etc) 30 *snd sound driver system diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c index 3fc3ac0..ee42a1c 100644 --- a/sys/dev/null/null.c +++ b/sys/dev/null/null.c @@ -48,7 +48,6 @@ static d_write_t null_write; static d_ioctl_t null_ioctl; static d_read_t zero_read; -#define CDEV_MAJOR 2 #define NULL_MINOR 2 #define ZERO_MINOR 12 @@ -58,7 +57,6 @@ static struct cdevsw null_cdevsw = { .d_write = null_write, .d_ioctl = null_ioctl, .d_name = "null", - .d_maj = CDEV_MAJOR, }; static struct cdevsw zero_cdevsw = { @@ -66,7 +64,6 @@ static struct cdevsw zero_cdevsw = { .d_read = zero_read, .d_write = null_write, .d_name = "zero", - .d_maj = CDEV_MAJOR, .d_flags = D_MMAP_ANON, }; |