diff options
author | Stefan Eßer <se@FreeBSD.org> | 2003-03-01 08:57:16 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2003-03-01 08:57:16 +0000 |
commit | 1fa4dd2f14db943f63d5fc4f407ebf282c1c7f0f (patch) | |
tree | 8e6c2b63363b1eba6c59d49f1dd932f79e10ef18 /sys/dev/pci/pci_user.c | |
parent | bff5362bf25e8fe7528dfc8ae05ba85e1d5f9961 (diff) | |
download | src-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.c | 4 |
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, |