summaryrefslogtreecommitdiffstats
path: root/sys/pci/ncr.c
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/pci/ncr.c
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/pci/ncr.c')
-rw-r--r--sys/pci/ncr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 16e7bf6..a32e14a 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.141 1998/12/30 00:37:44 hoek Exp $
+** $Id: ncr.c,v 1.142 1999/01/27 23:45:43 dillon Exp $
**
** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family.
**
@@ -1361,7 +1361,7 @@ static void ncr_attach (pcici_t tag, int unit);
#if !defined(lint)
static const char ident[] =
- "\n$Id: ncr.c,v 1.141 1998/12/30 00:37:44 hoek Exp $\n";
+ "\n$Id: ncr.c,v 1.142 1999/01/27 23:45:43 dillon Exp $\n";
#endif
static const u_long ncr_version = NCR_VERSION * 11
@@ -1410,7 +1410,11 @@ static struct pci_device ncr_device = {
NULL
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (ncr, ncr_device);
+#else
DATA_SET (pcidevice_set, ncr_device);
+#endif /* COMPAT_PCI_DRIVER */
static char *ncr_name (ncb_p np)
{
OpenPOWER on IntegriCloud