diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
commit | 96b3554e5c90242d0c5eea10fc394975d03303a8 (patch) | |
tree | df3ac2ff838e9910e3d3aeba252766e697e2dc6a /sys/dev/en | |
parent | 46f40af05253fcf39fcddabbe20a6b365fe73e4c (diff) | |
download | src-96b3554e5c90242d0c5eea10fc394975d03303a8.tar.gz src-96b3554e5c90242d0c5eea10fc394975d03303a8.zip |
Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't
hurt the driver portability to 3.x too much for where drivers are shared.
Notes
Notes:
svn path=/head/; revision=46024
Diffstat (limited to 'sys/dev/en')
-rw-r--r-- | sys/dev/en/if_en_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c index 3414edc489be..39d5d79fbda1 100644 --- a/sys/dev/en/if_en_pci.c +++ b/sys/dev/en/if_en_pci.c @@ -114,7 +114,11 @@ static struct pci_device endevice = { NULL, }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER (en, endevice); +#else DATA_SET (pcidevice_set, endevice); +#endif /* COMPAT_PCI_DRIVER */ /* * local defines (PCI specific stuff) |