diff options
author | peter <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
commit | d6f4bd18f508c92a26bf83b89c11d5641e61fbeb (patch) | |
tree | 83fa637897b94fbf0e8ba3471e5bea478adeb79f /sys/pci/ide_pci.c | |
parent | e7462e4ae57c4f138096d5845ab761b06a08fb0a (diff) | |
download | FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.zip FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.tar.gz |
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.
Diffstat (limited to 'sys/pci/ide_pci.c')
-rw-r--r-- | sys/pci/ide_pci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c index 6faef01..81fc318 100644 --- a/sys/pci/ide_pci.c +++ b/sys/pci/ide_pci.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ide_pci.c,v 1.31 1999/04/13 20:22:33 peter Exp $ + * $Id: ide_pci.c,v 1.32 1999/04/16 21:22:50 peter Exp $ */ #include "pci.h" @@ -1672,7 +1672,11 @@ static struct pci_device ide_pci_device = { 0 }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(ide_pci, ide_pci_device); +#else DATA_SET(pcidevice_set, ide_pci_device); +#endif /* COMPAT_PCI_DRIVER */ /* * Return a cookie if we may be able to do DMA on the specified |