summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
committerphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
commitdf397dedeab80f98300da9e5999d17a57c01b19f (patch)
treec4705f5f800de96d25d8356b2711c664dabcd41e /sys/pci
parentab77c85da2c48c6a8b74ed533d4b739b5afeb405 (diff)
downloadFreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.zip
FreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.tar.gz
Device megapatch 1/6:
Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp.c2
-rw-r--r--sys/pci/if_ti.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 2ae2b72..6f09660 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -63,7 +63,6 @@ MODULE_VERSION(agp, 1);
MALLOC_DEFINE(M_AGP, "agp", "AGP data structures");
-#define CDEV_MAJOR 148
/* agp_drv.c */
static d_open_t agp_open;
static d_close_t agp_close;
@@ -76,7 +75,6 @@ static struct cdevsw agp_cdevsw = {
.d_ioctl = agp_ioctl,
.d_mmap = agp_mmap,
.d_name = "agp",
- .d_maj = CDEV_MAJOR,
};
static devclass_t agp_devclass;
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c
index c5f3fc0..9e8c8f1 100644
--- a/sys/pci/if_ti.c
+++ b/sys/pci/if_ti.c
@@ -180,7 +180,6 @@ static struct ti_type ti_devs[] = {
{ 0, 0, NULL }
};
-#define TI_CDEV_MAJOR 153
static d_open_t ti_open;
static d_close_t ti_close;
@@ -191,7 +190,6 @@ static struct cdevsw ti_cdevsw = {
.d_close = ti_close,
.d_ioctl = ti_ioctl2,
.d_name = "ti",
- .d_maj = TI_CDEV_MAJOR,
};
static int ti_probe (device_t);
OpenPOWER on IntegriCloud