aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci_user.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2003-03-01 08:57:16 +0000
committerStefan Eßer <se@FreeBSD.org>2003-03-01 08:57:16 +0000
commit1fa4dd2f14db943f63d5fc4f407ebf282c1c7f0f (patch)
tree8e6c2b63363b1eba6c59d49f1dd932f79e10ef18 /sys/dev/pci/pci_user.c
parentbff5362bf25e8fe7528dfc8ae05ba85e1d5f9961 (diff)
downloadsrc-1fa4dd2f14db943f63d5fc4f407ebf282c1c7f0f.tar.gz
src-1fa4dd2f14db943f63d5fc4f407ebf282c1c7f0f.zip
Make /dev/pci use MAJOR_AUTO.
Notes
Notes: svn path=/head/; revision=111695
Diffstat (limited to 'sys/dev/pci/pci_user.c')
-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 83b63b3ed692..0c6fe5181723 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,