From 4db0fda84e5db0514ef154e85308fefcec224871 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 27 Feb 2005 22:19:35 +0000 Subject: [PATCH] Use dynamic major number allocation. --- sys/conf/majors | 1 - sys/contrib/ipfilter/netinet/mlfk_ipl.c | 2 -- sys/dev/ata/atapi-tape.c | 1 - 3 files changed, 4 deletions(-) diff --git a/sys/conf/majors b/sys/conf/majors index 74c15420b0c..b3c62571cab 100644 --- a/sys/conf/majors +++ b/sys/conf/majors @@ -41,7 +41,6 @@ 74 *ccd concatenated disk 76 scc IBM Smart Capture Card (ohashi@mickey.ai.kyutech.ac.jp) 77 - - -79 *ipl IP Filter 80 xdcp Assigned to Chris Ficklin 83 can CAN16-2 CAN-PC Interface 84 dtfp Datum Time and Frequency processor (louie@UU.NET) diff --git a/sys/contrib/ipfilter/netinet/mlfk_ipl.c b/sys/contrib/ipfilter/netinet/mlfk_ipl.c index 2644d24ec46..dc5a1c8a49c 100644 --- a/sys/contrib/ipfilter/netinet/mlfk_ipl.c +++ b/sys/contrib/ipfilter/netinet/mlfk_ipl.c @@ -103,7 +103,6 @@ SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_minttl, CTLFLAG_RW, &fr_minttl, 0, ""); SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_minttllog, CTLFLAG_RW, &fr_minttllog, 0, ""); -#define CDEV_MAJOR 79 static struct cdevsw ipl_cdevsw = { .d_version = D_VERSION, .d_flags = 0, @@ -112,7 +111,6 @@ static struct cdevsw ipl_cdevsw = { .d_read = iplread, .d_ioctl = iplioctl, .d_name = "ipl", - .d_maj = CDEV_MAJOR, }; #if (__FreeBSD_version >= 500000) diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 654925fb3d8..827edec19c1 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -61,7 +61,6 @@ static struct cdevsw ast_cdevsw = { .d_ioctl = ast_ioctl, .d_strategy = ast_strategy, .d_name = "ast", - .d_maj = 119, .d_flags = D_TAPE | D_TRACKCLOSE, };