summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2003-03-01 08:57:16 +0000
committerse <se@FreeBSD.org>2003-03-01 08:57:16 +0000
commit9586bf370665b733aeb95cb5e75d0ddaf4b98e04 (patch)
tree8e6c2b63363b1eba6c59d49f1dd932f79e10ef18 /sys/dev
parent98d7696db02c68546b76fc3c542787bde97d6fe7 (diff)
downloadFreeBSD-src-9586bf370665b733aeb95cb5e75d0ddaf4b98e04.zip
FreeBSD-src-9586bf370665b733aeb95cb5e75d0ddaf4b98e04.tar.gz
Make /dev/pci use MAJOR_AUTO.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c
index 83b63b3..0c6fe51 100644
--- a/sys/dev/pci/pci_user.c
+++ b/sys/dev/pci/pci_user.c
@@ -67,7 +67,11 @@ 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 = {
/* open */ pci_open,
OpenPOWER on IntegriCloud