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)
This commit is contained in:
Ed Schouten 2008-06-25 07:45:31 +00:00
parent 172b9da045
commit 721351876c
12 changed files with 1 additions and 18 deletions

View File

@ -26,8 +26,5 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_IO 14
d_open_t ioopen;
d_close_t ioclose;

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -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;

View File

@ -26,8 +26,5 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_IO 14
d_open_t ioopen;
d_close_t ioclose;

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,8 +26,5 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_IO 14
d_open_t ioopen;
d_close_t ioclose;

View File

@ -27,7 +27,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1

View File

@ -26,7 +26,6 @@
* $FreeBSD$
*/
#define CDEV_MAJOR 2
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1