summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-27 22:11:02 +0000
committerphk <phk@FreeBSD.org>2005-02-27 22:11:02 +0000
commit1b493208f12f4435469b2c75543f6a781481989c (patch)
tree08873a2083275a0cee252280386e3e2c6db47625 /sys/dev
parent6a03d678b56dd1e552e08673744a4c5999c97f01 (diff)
downloadFreeBSD-src-1b493208f12f4435469b2c75543f6a781481989c.zip
FreeBSD-src-1b493208f12f4435469b2c75543f6a781481989c.tar.gz
Use dynamic major number allocation.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci_user.c7
-rw-r--r--sys/dev/tga/tga_pci.c1
2 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c
index b14abe1..6311c9c 100644
--- a/sys/dev/pci/pci_user.c
+++ b/sys/dev/pci/pci_user.c
@@ -67,12 +67,6 @@ static int pci_conf_match(struct pci_match_conf *matches, int num_matches,
struct pci_conf *match_buf);
static d_ioctl_t pci_ioctl;
-#if __FreeBSD_version < 500000
-#define PCI_CDEV 78
-#else
-#define PCI_CDEV MAJOR_AUTO
-#endif
-
struct cdevsw pcicdev = {
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
@@ -80,7 +74,6 @@ struct cdevsw pcicdev = {
.d_close = pci_close,
.d_ioctl = pci_ioctl,
.d_name = "pci",
- .d_maj = PCI_CDEV,
};
static int
diff --git a/sys/dev/tga/tga_pci.c b/sys/dev/tga/tga_pci.c
index 63f9c5a..ffa5deb 100644
--- a/sys/dev/tga/tga_pci.c
+++ b/sys/dev/tga/tga_pci.c
@@ -105,7 +105,6 @@ static struct cdevsw tga_cdevsw = {
.d_ioctl = pcigfb_ioctl,
.d_mmap = pcigfb_mmap,
.d_name = "tga",
- .d_maj = -1,
};
#endif /* FB_INSTALL_CDEV */
OpenPOWER on IntegriCloud