summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-27 22:16:30 +0000
committerphk <phk@FreeBSD.org>2005-02-27 22:16:30 +0000
commit6b8f675295aa1f21adbd7aef03a5f44cfd4d0d33 (patch)
tree786bfb12e2d47eb1fe4fb0079fa789f68be26cef
parent1b493208f12f4435469b2c75543f6a781481989c (diff)
downloadFreeBSD-src-6b8f675295aa1f21adbd7aef03a5f44cfd4d0d33.zip
FreeBSD-src-6b8f675295aa1f21adbd7aef03a5f44cfd4d0d33.tar.gz
Use dynamic major number allocation.
-rw-r--r--sys/conf/majors2
-rw-r--r--sys/dev/sound/pcm/dsp.c1
-rw-r--r--sys/dev/sound/pcm/mixer.c1
-rw-r--r--sys/dev/sound/pcm/sndstat.c1
-rw-r--r--sys/dev/sound/pcm/sound.h5
-rw-r--r--sys/isa/vga_isa.c1
-rw-r--r--sys/pc98/cbus/gdc.c1
-rw-r--r--sys/pc98/pc98/pc98gdc.c1
8 files changed, 0 insertions, 13 deletions
diff --git a/sys/conf/majors b/sys/conf/majors
index 6e1b3f1..f58806a 100644
--- a/sys/conf/majors
+++ b/sys/conf/majors
@@ -22,7 +22,6 @@
4 *geom GEOMetry
19 *tw X-10 power interface
22 *fd (/dev/stdin etc)
-30 *snd sound driver system
32 lkmc Loadable Kernel Module Controller
33 lkm assigned to Loadable Kernel Modules
34 lkm assigned to Loadable Kernel Modules
@@ -54,7 +53,6 @@
93 coda CODA filesystem.
96 altq alternate queueing (including cbq, red, wfq)
98 loe Loopback pseudo-ethernet (sbabkin@dcn.att.com)
-99 *ct Cronyx Tau-ISA serial adapters (driver name "ctau")
115 dag University of Waikato DAG network capture boards
117 *acd ATAPI CDROM
119 *ast ATAPI tape
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 1adc6ce..5d3aa52 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -52,7 +52,6 @@ struct cdevsw dsp_cdevsw = {
.d_poll = dsp_poll,
.d_mmap = dsp_mmap,
.d_name = "dsp",
- .d_maj = SND_CDEV_MAJOR,
};
#ifdef USING_DEVFS
diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index fed0fc5..5846847 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -79,7 +79,6 @@ static struct cdevsw mixer_cdevsw = {
.d_close = mixer_close,
.d_ioctl = mixer_ioctl,
.d_name = "mixer",
- .d_maj = SND_CDEV_MAJOR,
};
#ifdef USING_DEVFS
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c
index 7113bf1..40d3f7e 100644
--- a/sys/dev/sound/pcm/sndstat.c
+++ b/sys/dev/sound/pcm/sndstat.c
@@ -50,7 +50,6 @@ static struct cdevsw sndstat_cdevsw = {
.d_close = sndstat_close,
.d_read = sndstat_read,
.d_name = "sndstat",
- .d_maj = SND_CDEV_MAJOR,
};
struct sndstat_entry {
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index e4cac24..56b76f0 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -152,11 +152,6 @@ nomenclature:
struct pcm_channel *fkchan_setup(device_t dev);
int fkchan_kill(struct pcm_channel *c);
-/*
- * Major nuber for the sound driver.
- */
-#define SND_CDEV_MAJOR 30
-
#define SND_MAXVCHANS 255
/*
diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c
index 968ee56c..033882d 100644
--- a/sys/isa/vga_isa.c
+++ b/sys/isa/vga_isa.c
@@ -82,7 +82,6 @@ static struct cdevsw isavga_cdevsw = {
.d_ioctl = isavga_ioctl,
.d_mmap = isavga_mmap,
.d_name = VGA_DRIVER_NAME,
- .d_maj = -1,
};
#endif /* FB_INSTALL_CDEV */
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c
index 8d463fb..9df28d5 100644
--- a/sys/pc98/cbus/gdc.c
+++ b/sys/pc98/cbus/gdc.c
@@ -113,7 +113,6 @@ static struct cdevsw gdc_cdevsw = {
.d_ioctl = gdcioctl,
.d_mmap = gdcmmap,
.d_name = DRIVER_NAME,
- .d_maj = -1,
};
#endif /* FB_INSTALL_CDEV */
diff --git a/sys/pc98/pc98/pc98gdc.c b/sys/pc98/pc98/pc98gdc.c
index 8d463fb..9df28d5 100644
--- a/sys/pc98/pc98/pc98gdc.c
+++ b/sys/pc98/pc98/pc98gdc.c
@@ -113,7 +113,6 @@ static struct cdevsw gdc_cdevsw = {
.d_ioctl = gdcioctl,
.d_mmap = gdcmmap,
.d_name = DRIVER_NAME,
- .d_maj = -1,
};
#endif /* FB_INSTALL_CDEV */
OpenPOWER on IntegriCloud