summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
committerpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
commitd6f4bd18f508c92a26bf83b89c11d5641e61fbeb (patch)
tree83fa637897b94fbf0e8ba3471e5bea478adeb79f /sys/dev/isp
parente7462e4ae57c4f138096d5845ab761b06a08fb0a (diff)
downloadFreeBSD-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/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index ee3eba9..b7ce04d 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1,4 +1,4 @@
-/* $Id: isp_pci.c,v 1.18 1999/04/04 01:14:02 mjacob Exp $ */
+/* $Id: isp_pci.c,v 1.19 1999/04/11 02:47:31 eivind Exp $ */
/* release_4_3_99 */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
@@ -271,7 +271,11 @@ static struct pci_device isp_pci_driver = {
&ispunit,
NULL
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (isp_pci, isp_pci_driver);
+#else
DATA_SET (pcidevice_set, isp_pci_driver);
+#endif /* COMPAT_PCI_DRIVER */
static PROBETYPE
OpenPOWER on IntegriCloud