summaryrefslogtreecommitdiffstats
path: root/sys/dev/io
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-06-25 07:45:31 +0000
committered <ed@FreeBSD.org>2008-06-25 07:45:31 +0000
commit4d6a9685e8a4a864a7a0b2834a1ff65f9ae5057e (patch)
treed7a1f0b5cfb00def7769c305e55c9adbdafce4cf /sys/dev/io
parent909623359d0d40228b1f8e4cf4c452b38b96b458 (diff)
downloadFreeBSD-src-4d6a9685e8a4a864a7a0b2834a1ff65f9ae5057e.zip
FreeBSD-src-4d6a9685e8a4a864a7a0b2834a1ff65f9ae5057e.tar.gz
Remove the unused major/minor numbers from iodev and memdev.
Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
Diffstat (limited to 'sys/dev/io')
-rw-r--r--sys/dev/io/iodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/io/iodev.c b/sys/dev/io/iodev.c
index 33f6c1d..7c7ee9c 100644
--- a/sys/dev/io/iodev.c
+++ b/sys/dev/io/iodev.c
@@ -66,7 +66,7 @@ io_modevent(module_t mod __unused, int type, void *data __unused)
case MOD_LOAD:
if (bootverbose)
printf("io: <I/O>\n");
- iodev = make_dev(&io_cdevsw, CDEV_MINOR_IO,
+ iodev = make_dev(&io_cdevsw, 0,
UID_ROOT, GID_WHEEL, 0600, "io");
break;
OpenPOWER on IntegriCloud